CVE-2018-25157 Phraseanet 4.0.3 Stored XSS via Document Upload
Authenticated attackers can inject malicious scripts via crafted file names in Phraseanet, leading to cookie theft or user redirection.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2018-25157?
CVE-2018-25157 is a medium-severity cross-site scripting vulnerability in Phraseanet DAM Open Source, published on 11 Feb 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Phraseanet 4.0.3 contains a stored cross-site scripting vulnerability that allows authenticated users to inject malicious scripts through crafted file names during document uploads. Attackers can upload files with embedded SVG scripts that execute in the browser, potentially stealing cookies or redirecting users when the file is viewed.
Weakness: CWE-79
Which versions are affected by CVE-2018-25157?
2 open source packages ship an affected version, including phraseanet/phraseanet.
| Package | Affected | Fixed in |
|---|---|---|
phraseanet/phraseanet Packagist | All versions | None |
phraseanet/phraseanet Packagist | All versions | None |
How do I fix CVE-2018-25157?
No fix has been published for CVE-2018-25157 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2018-25157 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-25157 exists.
Sources
Also known as GHSA-gcpq-mrgg-v5f3.