CVE-2026-135438

Anchr before 3.7.2 Stored XSS via Image Upload

Published Nov 23, 2026 CVSS 4.0 · 5.1 Medium EPSS n/a KEV · Not listed
Description
Anchr before 3.7.2 contains a stored cross-site scripting vulnerability that allows authenticated users to host HTML files by uploading them through the image upload feature with a spoofed image content type. Attackers can upload an .html file served via GET /api/image/:id from the Anchr origin, running script that steals the victim's localStorage session token for account takeover.

Analysis

AI-generated

Technical impact

Anchr before 3.7.2 contains a stored cross‑site scripting flaw that allows authenticated users to upload .html files through the image upload interface by spoofing the MIME type. This stored payload is served via the GET /api/image/:id endpoint, running malicious JavaScript that can capture the vulnerable user’s localStorage session token. The stolen token can be used to hijack the victim’s account, leading to full account takeover. The weakness arises from improper file type validation, formally identified as CWE‑434.

Affected Systems

The vulnerability affects all versions of the Anchr project (provider muety:Anchr) released prior to 3.7.2. Users running any earlier release should assume that the image upload feature accepts arbitrary file types.

Risk and Exploitability

With a CVSS base score of 5.1, the flaw represents a moderate severity exposure. The EPSS data is not available and the vulnerability is not listed in CISA’s KEV catalog, indicating limited widely‑known exploitation. The attack vector requires authenticated access and the ability to upload files, so risk is confined to actors who can log into Anchr. Once the payload is accessible, the application runs the embedded script in the victim’s browser, allowing session token theft and potential compromise of the attacker’s account.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Anchr to version 3.7.2 or later where the image upload validation was corrected.
  • If an upgrade is not feasible, enforce strict MIME type checking and reject any uploaded files that are not genuine image formats, especially those with an .html extension.
  • Implement a Content Security Policy that disallows inline scripts and restricts script sources to trusted origins to mitigate the impact of any stored XSS payload.

Generated by OpenCVE AI on November 23, 2026 at 19:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Anchr before 3.7.2 contains a stored cross-site scripting vulnerability that allows authenticated users to host HTML files by uploading them through the image upload feature with a spoofed image content type. Attackers can upload an .html file served via GET /api/image/:id from the Anchr origin, running script that steals the victim's localStorage session token for account takeover.
Title Anchr before 3.7.2 Stored XSS via Image Upload
Weaknesses CWE-434
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N'}

Subscriptions

No data.

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 23, 2026, 5:57 PM
Reserved
Nov 23, 2026, 5:49 PM
Status
Received
Published
Nov 23, 2026, 6:17 PM
Modified
Nov 23, 2026, 6:17 PM