CVE-2025-3733 baguetteBox.js - Moderately critical - Cross Site Scripting - SA-CONTRIB-2025-034

Medium 6.5 Published Updated

Attackers can inject malicious scripts into web pages via the baguetteBox.js module, potentially compromising user sessions or data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-3733?

CVE-2025-3733 is a medium-severity cross-site scripting vulnerability in Drupal baguetteBox.js, published on 16 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal baguetteBox.Js allows Cross-Site Scripting (XSS).This issue affects baguetteBox.Js: from 0.0.0 before 2.0.4, from 3.0.0 before 3.0.1.

Weakness: CWE-79

Which versions are affected by CVE-2025-3733?

It affects 1 product.

Linux distribution packages (1)
drupal/baguettebox Packagist:https://packages.drupal.org/8All versions2.0.4, 3.0.1

Products include Baguettebox.js Project Baguettebox.js.

How do I fix CVE-2025-3733?

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-2025-3733 being exploited?

There is no known exploitation of CVE-2025-3733 in the wild and no public exploit code.

Sources

Also known as DRUPAL-CONTRIB-2025-034, GHSA-f9px-2356-59h7.

Is CVE-2025-3733 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free