CVE-2026-48788 is a high-severity cross-site scripting (XSS) vulnerability in github.com/umputun/remark42 (go), affecting versions >= 1.6.0, < 1.16.0. It is fixed in 1.16.0.
Summary The remark42 image proxy fetches an arbitrary remote URL and re-serves the response from remark42's own origin. The download path decides whether the fetched resource is an image by looking only at the Content-Type header the remote server claims, it never inspects the actual bytes. The serving path then derives the response Content-Type by sniffing those bytes with http.DetectContentType. An attacker hosts a URL that sets Content-Type to image/png but returns an HTML/JavaScript body: the download check sees image/png → accepts it; the serve path sniffs the body → emits Content-Type: text/html; the browser renders attacker HTML/JS as a document in remark42's origin. Details Downloader backend/app/rest/proxy/image.go, downloadImage(), lines 189-206: Send Content-Type: image/png and the check passes regardless of what the body actually contains. Server backend/app/rest/proxy/image.go, Handler(), line 131: backend/app/store/image/image.go, ImgContentType(), lines 242-249: PoC Then have the victim open https://<remark42-host>/api/v1/img?src=<base64(attacker-host)> top-level. Impact The script can issue authenticated, same-origin API calls with credentials: 'include', the JWT cookie is sent automatically. The script can read the XSRF-TOKEN cookie and re-send it as the X-XSRF-TOKEN header, defeating CSRF protection. The attacker acts as the victim: delete/edit their comments, change their settings, and, if the victim is admin, perform admin actions. Triggering 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 (email, DM, link on another site, etc.). Fix v1.16.0 adds layered defense to /api/v1/img and /api/v1/picture/{user}/{id}: rest.SafeImgContentType validates sniffed body bytes against a strict allowlist (image/png, image/jpeg, image/gif, image/webp, image/bmp, image/x-icon). Non-image content returns 415 with no body echo. SVG is implicitly excluded. Every response carries Content-Security-Policy: default-src 'none'; sandbox; frame-ancestors 'none', X-Content-Type Options: nosniff, and Content-Disposition: inline; filename="image". The ETag is bumped to "v2:<base64(src)>". Browsers that revalidate cached pre-fix responses get a fresh validated 200 instead of a 304 against the poisoned cached entry. The strict default-src 'none'; sandbox CSP also applies to all /api/v1/ routes as defense-in-depth. Residual exposure Browser-local caches that already hold a pre-fix text/html response with Cache-Control: max-age=2592000 keep serving it from local store until the TTL expires or the cache is evicted under memory pressure. The ETag bump only reaches clients that revalidate during the cached lifetime. Operators running a CDN/edge cache in front of remark42 should purge /api/v1/img after deploying v1.16.0.
Untrusted input is rendered as active markup in a victim's browser, which can run script in their session. Typical impact: session or credential theft, and actions taken as the user.
CVE-2026-48788 has a CVSS score of 8.2 (High). The vector is network-reachable, no privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment.
A fixed version is available (1.16.0). Upgrading removes the vulnerable code path.
go
github.com/umputun/remark42 (>= 1.6.0, < 1.16.0)github.com/umputun/remark42 → 1.16.0 (go)Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter instead of chasing every advisory.
Kodem's runtime-powered SCA identifies whether CVE-2026-48788 is reachable in your applications. Explore open-source security for your team.
See if CVE-2026-48788 is reachable in your applications. Get a demo
Already deployed Kodem? See CVE-2026-48788 in your environment →Upgrade github.com/umputun/remark42 to 1.16.0 or later to resolve this vulnerability.
Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.
CVE-2026-48788 is a high-severity cross-site scripting (XSS) vulnerability in github.com/umputun/remark42 (go), affecting versions >= 1.6.0, < 1.16.0. It is fixed in 1.16.0. Untrusted input is rendered as active markup in a victim's browser, which can run script in their session.
CVE-2026-48788 has a CVSS score of 8.2 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
github.com/umputun/remark42 (go) versions >= 1.6.0, < 1.16.0 is affected.
Yes. CVE-2026-48788 is fixed in 1.16.0. Upgrade to this version or later.
Whether CVE-2026-48788 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
Upgrade github.com/umputun/remark42 to 1.16.0 or later.