CVE-2024-12393 is a medium-severity (CVSS 5.4) Cross-site Scripting (XSS) vulnerability in drupal/core. A fix is available for drupal/core — see the affected versions and patch details below.
Drupal core - Moderately critical - Cross Site Scripting - SA-CORE-2024-003
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2024-12393.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
drupal/core🐘drupal/core🐘drupal/core🐘drupal/core-recommended🐘drupal/core-recommended🐘drupal/core-recommended🐘drupal/drupal🐘drupal/drupal+1 moreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
Drupal uses JavaScript to render status messages in some cases and configurations. In certain situations, the status messages are not adequately sanitized. This issue affects Drupal Core: from 8.8.0 before 10.2.11, from 10.3.0 before 10.3.9, from 11.0.0 before 11.0.8.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | drupal/core | ≥ 8.8.0&&< 10.2.11 | 10.2.11composer require drupal/core:^10.2.11 |
| 🐘Packagist | drupal/core | ≥ 10.3.0&&< 10.3.9 | 10.3.9composer require drupal/core:^10.3.9 |
| 🐘Packagist | drupal/core | ≥ 11.0.0&&< 11.0.8 | 11.0.8composer require drupal/core:^11.0.8 |
| 🐘Packagist | drupal/core-recommended | ≥ 8.8.0&&< 10.2.11 | 10.2.11composer require drupal/core-recommended:^10.2.11 |
| 🐘Packagist | drupal/core-recommended | ≥ 10.3.0&&< 10.3.9 | 10.3.9composer require drupal/core-recommended:^10.3.9 |
| 🐘Packagist | drupal/core-recommended | ≥ 11.0.0&&< 11.0.8 | 11.0.8composer require drupal/core-recommended:^11.0.8 |
Affected Products
drupaldrupalDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for drupal/core, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update drupal/core to 10.2.11 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-12393 is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Frequently Asked Questions
Is CVE-2024-12393 in your dependencies?
Find it across Packagist, including transitive dependencies.