CVE-2025-48923 Toc.js - Moderately critical - Cross-site Scripting - SA-CONTRIB-2025-077
An attacker can inject malicious scripts into web pages via the Drupal Toc.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
- A user has to click or open something
- Fix
- Available
What is CVE-2025-48923?
CVE-2025-48923 is a medium-severity cross-site scripting vulnerability in Drupal Toc.js, published on 26 Jun 2025. 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 Toc.Js allows Cross-Site Scripting (XSS).This issue affects Toc.Js: from 0.0.0 before 3.2.1.
Weakness: CWE-79
Which versions are affected by CVE-2025-48923?
It affects 1 product.
Linux distribution packages (1)
drupal/toc_js Packagist:https://packages.drupal.org/8 | All versions | 3.2.1 |
Products include Toc.js Project Toc.js.
How do I fix CVE-2025-48923?
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-48923 being exploited?
There is no known exploitation of CVE-2025-48923 in the wild and no public exploit code.
Sources
Also known as DRUPAL-CONTRIB-2025-077, GHSA-2vxx-j2xr-8w6v.