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.