CVE-2026-6871 Obfuscate - Moderately critical - Cross-site scripting - SA-CONTRIB-2026-033
An attacker can inject malicious scripts into web pages viewed by other users via the Drupal Obfuscate module.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-6871?
CVE-2026-6871 is a medium-severity cross-site scripting vulnerability in Drupal Obfuscate, published on 19 May 2026. An attacker can exploit it over the internet without logging in, 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 Cross-Site Scripting (XSS).
This issue affects Obfuscate: from 0.0.0 before 2.0.2.
Weakness: CWE-79
Which versions are affected by CVE-2026-6871?
It affects 1 product.
Linux distribution packages (1)
drupal/obfuscate Packagist:https://packages.drupal.org/8 | All versions | 2.0.2 |
Products include Obfuscate Project Obfuscate.
How do I fix CVE-2026-6871?
Upgrade to a fixed version.
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-2026-6871 being exploited?
There is no known exploitation of CVE-2026-6871 in the wild and no public exploit code.
Sources
Also known as DRUPAL-CONTRIB-2026-033, GHSA-rg7p-g694-c73p.