CVE-2018-25157: Phraseanet/phraseanet Cross-Site Scripting Vulnerability
MODERATECVE-2018-25157 is a MODERATE (CVSS 6.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Phraseanet/phraseanet libraries in the Packagist ecosystem. The issue involves phraseanet vulnerable to stored cross-site scripting through crafted file names. Remediation is available in the latest vendor maintenance releases.
CVE-2018-25157 at a Glance
Security Impact
CVSS: 6.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N).
How to Fix CVE-2018-25157
To remediate this vulnerability, upgrade all affected Phraseanet/phraseanet dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade phraseanet/phraseanet to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for phraseanet/phraseanet
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-25157, inspect your project dependencies for Phraseanet/phraseanet:
inspect dependencies for phraseanet/phraseanet
Analyze the terminal output to locate any version of Phraseanet/phraseanet in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Phraseanet/phraseanet, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-25157 Affected Phraseanet/phraseanet Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
phraseanet/phraseanet
|
Packagist |
4.0.3
All 1 versions
4.0.3
|
None specified
|
References
Frequently Asked Questions
What is CVE-2018-25157?
Which Phraseanet/phraseanet versions are affected?
What version fixes CVE-2018-25157?
Is phraseanet/phraseanet affected?
What is the CVSS score of CVE-2018-25157?
What CWE is associated with CVE-2018-25157?
How can I check Packagist dependencies for CVE-2018-25157?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gcpq-mrgg-v5f3",
"modified" : "2026-02-11T18:39:48Z",
"published" : "2026-02-11T15:30:27Z",
"aliases" : [ "CVE-2018-25157" ],
"summary" : "Phraseanet vulnerable to stored cross-site scripting through crafted file names",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "phraseanet/phraseanet"
},
"versions" : [ "4.0.3" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-25157"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/alchemy-fr/Phraseanet"
}, {
"type" : "WEB",
"url" : "https://www.exploit-db.com/exploits/46935"
}, {
"type" : "WEB",
"url" : "https://www.phraseanet.com"
}, {
"type" : "WEB",
"url" : "https://www.phraseanet.com/en/download"
}, {
"type" : "WEB",
"url" : "https://www.vulncheck.com/advisories/phraseanet-stored-xss-via-document-upload"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-11T18:39:48Z",
"nvd_published_at" : "2026-02-11T15:16:07Z"
}
}