CVE-2025-6050: Mezzanine Cross-Site Scripting Vulnerability
MODERATECVE-2025-6050 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Mezzanine libraries in the PyPI ecosystem. The issue involves mezzanine cms has a stored cross-site scripting (xss) vulnerability in the displayable_links_js function. Remediation is available by upgrading affected packages to version 6.1.1.
CVE-2025-6050 at a Glance
How to Fix CVE-2025-6050
To remediate this vulnerability, upgrade all affected Mezzanine dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install Mezzanine>=6.1.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show Mezzanine
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-6050, inspect your installed packages using pip:
pip show Mezzanine
Analyze the terminal output to locate any version of Mezzanine in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.1.1), your application is affected.
Note: The pip show Mezzanine command checks currently installed packages in your active Python environment.
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 Mezzanine, 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-2025-6050 Affected Mezzanine Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Mezzanine
|
PyPI |
< 6.1.1
|
6.1.1
|
References
Frequently Asked Questions
What is CVE-2025-6050?
Which Mezzanine versions are affected?
What version fixes CVE-2025-6050?
Is Mezzanine affected?
What CWE is associated with CVE-2025-6050?
How can I check PyPI dependencies for CVE-2025-6050?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7pr5-w74r-jjj7",
"modified" : "2026-07-20T21:22:12Z",
"published" : "2025-06-17T12:31:15Z",
"aliases" : [ "CVE-2025-6050" ],
"summary" : "Mezzanine CMS has a Stored Cross-Site Scripting (XSS) vulnerability in the displayable_links_js function",
"details" : "Mezzanine CMS, in versions prior to 6.1.1, contains a Stored Cross-Site Scripting (XSS) vulnerability in the admin interface. The vulnerability exists in the \"displayable_links_js\" function, which fails to properly sanitize blog post titles before including them in JSON responses served via \"/admin/displayable_links.js\". An authenticated admin user can create a blog post with a malicious JavaScript payload in the title field, then trick another admin user into clicking a direct link to the \"/admin/displayable_links.js\" endpoint, causing the malicious script to execute in their browser.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:L/VI:L/VA:N/SC:L/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "Mezzanine"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.1.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-6050"
}, {
"type" : "WEB",
"url" : "https://github.com/stephenmcd/mezzanine/commit/898630d8df48cf3ddb8b9942f59168b93216e3f8"
}, {
"type" : "WEB",
"url" : "https://advisory.checkmarx.net/advisory/CVE-2025-6050"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-7pr5-w74r-jjj7"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/mezzanine/PYSEC-2025-236.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/stephenmcd/mezzanine"
}, {
"type" : "WEB",
"url" : "https://github.com/stephenmcd/mezzanine/discussions/2080"
}, {
"type" : "WEB",
"url" : "https://https://github.com/stephenmcd/mezzanine/commit/898630d8df48cf3ddb8b9942f59168b93216e3f8"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-17T15:38:10Z",
"nvd_published_at" : "2025-06-17T11:15:22Z"
}
}