CVE-2026-48788 Details
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.
A cross-site scripting (XSS) vulnerability has been identified in Remark42, a self-hosted comment engine, affecting versions 1.6.0 prior to 1.16.0. The issue arises in the image proxy feature, which fetches remote URLs and serves the responses from Remark42's origin. The vulnerability is exploitable through content-type spoofing, where an attacker can host a URL that claims to be an image but returns HTML or JavaScript instead. This discrepancy allows the injected script to be executed in the context of the user's session.
Users can update to Remark42 version 1.16.0, which includes a fix for this vulnerability by adding proper content type validation and security headers. After updating, operators should purge the '/api/v1/img' endpoint if using a CDN or edge cache.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 17, 2026CISA-ADP
Assessed Jun 17, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/umputun/remark42/security/advisories/GHSA-4c8j-mgm4-qqvp | CISA-ADP | AdvisoryRemedyVendor |
| https://github.com/umputun/remark42/commit/78d6de6bce1e961f023969da3ec8a00dd80c9ae8 | [email protected] | Source CodeVendor |
| https://github.com/umputun/remark42/releases/tag/v1.16.0 | [email protected] | Release NotesVendor |
| https://github.com/umputun/remark42/security/advisories/GHSA-4c8j-mgm4-qqvp | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-436 | Interpretation Conflict | [email protected] |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Remark42 | >= 1.6.0, < 1.16.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | New CVE Received | [email protected] |
Volerion