CVE-2025-54384: Ckan Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-2r4h-8jxv-w2j8
CVSS 6.3
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-54384
GHSA Identifier GHSA-2r4h-8jxv-w2j8
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Ckan
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (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.

ckan fixed: 2.11.4
pip install ckan>=2.11.4
ckan fixed: 2.10.9
pip install ckan>=2.10.9
Verify Direct and Transitive Dependencies

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

### Impact The `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. ### Patches This vulnerability has been fixed in CKAN 2.10.9 and 2.11.4

CVE-2025-54384 Affected Ckan Versions

2 component(s)
Fixed Versions:
2.11.42.10.9
Product / Package Ecosystem Affected Versions Fixed Version
ckan
PyPI
≥ 2.11.0
< 2.11.4
2.11.4
ckan
PyPI
< 2.10.9
2.10.9

References

Frequently Asked Questions

What is CVE-2025-54384?
CVE-2025-54384 is a security vulnerability in Ckan involving CKAN vulnerable to stored XSS in resource description under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Ckan versions are affected?
Affected versions include releases prior to 2.11.4, 2.10.9 across affected packages: ckan.
What version fixes CVE-2025-54384?
Upgrading to 2.11.4, 2.10.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ckan affected?
Yes, ckan is affected in releases prior to 2.11.4, 2.10.9. Upgrade your dependency to 2.11.4, 2.10.9 or later.
What is the CVSS score of CVE-2025-54384?
CVE-2025-54384 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2025-54384?
CVE-2025-54384 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check PyPI dependencies for CVE-2025-54384?
Run the dependency tree command: 'pip show ckan'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}