CVE-2025-3130 Obfuscate - Moderately critical - Cross Site Scripting - SA-CONTRIB-2025-029
Attackers can inject malicious scripts via stored XSS in the Drupal Obfuscate module, potentially compromising user sessions and site integrity.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-3130?
CVE-2025-3130 is a medium-severity cross-site scripting vulnerability in Drupal Obfuscate, published on 2 Apr 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal Obfuscate allows Stored XSS.This issue affects Obfuscate: from 0.0.0 before 2.0.1.
Weakness: CWE-79
Which versions are affected by CVE-2025-3130?
2 open source packages ship an affected version, including drupal/obfuscate. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
drupal/obfuscate Packagist | All versions | 2.0.1 |
drupal/obfuscate Packagist | All versions | 2.0.1 |
Linux distribution packages (1)
drupal/obfuscate Packagist:https://packages.drupal.org/8 | All versions | 2.0.1 |
Products include Drupal Obfuscate.
How do I fix CVE-2025-3130?
Upgrade drupal/obfuscate to 2.0.1 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-3130 being exploited?
There is no known exploitation of CVE-2025-3130 in the wild and no public exploit code.
Sources
Also known as DRUPAL-CONTRIB-2025-029, GHSA-hphm-3x7f-g875.