CVE-2025-54384: Ckan Remote Code Execution Vulnerability
MODERATECVE-2025-54384 is a MODERATE (CVSS 6.3) remote code execution vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Ckan libraries in the PyPI ecosystem. The issue involves ckan vulnerable to stored xss in resource description. Remediation is available by upgrading affected packages to version 2.11.4, 2.10.9.
CVE-2025-54384 at a Glance
Security Impact
CVSS: 6.3
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:R/S:U/C:H/I:L/A:N).
How to Fix CVE-2025-54384
To remediate this vulnerability, upgrade all affected Ckan 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 ckan>=2.11.4
pip install ckan>=2.10.9
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show ckan
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-54384, inspect your installed packages using pip:
pip show ckan
Analyze the terminal output to locate any version of Ckan in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.11.4), your application is affected.
Note: The pip show ckan 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 Ckan, 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-54384 Affected Ckan Versions
2 component(s)References
Frequently Asked Questions
What is CVE-2025-54384?
Which Ckan versions are affected?
What version fixes CVE-2025-54384?
Is ckan affected?
What is the CVSS score of CVE-2025-54384?
What CWE is associated with CVE-2025-54384?
How can I check PyPI dependencies for CVE-2025-54384?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2r4h-8jxv-w2j8",
"modified" : "2025-10-29T19:51:18Z",
"published" : "2025-10-29T15:34:22Z",
"aliases" : [ "CVE-2025-54384" ],
"summary" : "CKAN vulnerable to stored XSS in resource description",
"details" : "### Impact\n\nThe `helpers.markdown_extract()` function did not perform sufficient sanitization of input data before wrapping in an HTML literal element. This helper is used to render user-provided data on dataset, resource, organization or group pages (plus any page provided by an extension that used that helper function), leading to a potential XSS vector.\n\n### Patches\nThis vulnerability has been fixed in CKAN 2.10.9 and 2.11.4",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "ckan"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.11.0"
}, {
"fixed" : "2.11.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "ckan"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.10.9"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ckan/ckan/security/advisories/GHSA-2r4h-8jxv-w2j8"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-54384"
}, {
"type" : "WEB",
"url" : "https://github.com/ckan/ckan/commit/112affffa74b14fc97c54abcf18315df97114917"
}, {
"type" : "WEB",
"url" : "https://github.com/ckan/ckan/commit/6d0065f2fc7e2682196d125275af34b93e9e554e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ckan/ckan"
}, {
"type" : "WEB",
"url" : "https://github.com/ckan/ckan/releases/tag/ckan-2.10.9"
}, {
"type" : "WEB",
"url" : "https://github.com/ckan/ckan/releases/tag/ckan-2.11.4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-10-29T15:34:22Z",
"nvd_published_at" : "2025-10-29T16:15:33Z"
}
}