{"answers":{"affected":"3 open source packages ship an affected version, including github.com/umputun/remark42.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-48788 exists.","fix":"Upgrade github.com/umputun/remark42 to 1.16.0 or later.","what":"CVE-2026-48788 is a high-severity cross-site scripting vulnerability in umputun remark42, published on 16 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-48788 and fix it if it is affected.\n\nWhat it is: CVE-2026-48788 is a high-severity cross-site scripting vulnerability in umputun remark42, published on 16 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-48788 exists.\n\nAffected packages and fixed versions:\n- github.com/umputun/remark42 (Go): affected from 1.6.0; fixed in 1.16.0\n- github.com/umputun/remark42 (Go): affected from 1.6.0; fixed in 1.16.0\n- github.com/umputun/remark42 (Go): affected from 1.6.0; fixed in 1.16.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-48788/ (Markdown: https://insights.sbomify.com/CVE-2026-48788/index.md)","id":"CVE-2026-48788","markdown":"https://insights.sbomify.com/CVE-2026-48788/index.md","name":"CVE-2026-48788","record":{"aliases":["GHSA-4c8j-mgm4-qqvp","GO-2026-5804"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Remark42 comment engine","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript in victims' browsers via content-type spoofing in the image proxy, potentially leading to account takeover.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","version":"3.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-436","name":"Interpretation Conflict"}],"description":"Remark42 is a self-hosted comment engine for blogs, articles, or any other place where readers can add comments. Versions 1.6.0 through 1.15.0 contain a Cross-Site Scripting (XSS) vulnerability exploitable through content-type spoofing. The Remark42 image proxy fetches an arbitrary remote URL and re-serves the response from Remark42's own origin. During the download phase, the proxy determines whether the resource is an image by inspecting only the Content-Type header advertised by the remote server, never examining the actual bytes; during the serving phase, it instead derives the response Content-Type by sniffing those bytes with http.DetectContentType. An attacker can exploit this inconsistency by hosting a URL that advertises Content-Type: image/png while returning an HTML/JavaScript body: the download check accepts it as an image, the serving path sniffs the body and emits Content-Type: text/html, and the browser renders the attacker-controlled HTML/JavaScript as a document within Remark42's origin. Exploitation requires no Remark42 account on the target instance; the attacker only needs to host the malicious upstream URL and deliver the proxy link to a victim by any means, such as email, direct message, or a link on another website. This issue has been fixed in version 1.16.0.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Remark42: Cross-Site Scripting (XSS) on /api/v1/img via content-type spoofing","id":"CVE-2026-48788","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"AnythingLLM: Windows path containment bypass in document folder route","id":"CVE-2026-48789"},"packages":[{"ecosystem":"Go","fixed":["1.16.0"],"introduced":["1.6.0"],"last_affected":[],"package":"github.com/umputun/remark42","purl":null,"source":"GHSA-4c8j-mgm4-qqvp"},{"ecosystem":"Go","fixed":["1.16.0"],"introduced":["1.6.0"],"last_affected":[],"package":"github.com/umputun/remark42","purl":"pkg:golang/github.com/umputun/remark42","source":"GHSA-4c8j-mgm4-qqvp"},{"ecosystem":"Go","fixed":["1.16.0"],"introduced":["1.6.0"],"last_affected":[],"package":"github.com/umputun/remark42","purl":"pkg:golang/github.com/umputun/remark42","source":"GO-2026-5804"}],"prev":{"headline":"gin-vue-admin vulnerable to RCE","id":"CVE-2026-48787"},"products":["remark42"],"published":"2026-06-16","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-17","vendors":["umputun"]},"summary":"Attackers can execute arbitrary JavaScript in victims' browsers via content-type spoofing in the image proxy, potentially leading to account takeover.","url":"https://insights.sbomify.com/CVE-2026-48788/"}