CVE-2025-48923: Drupal Toc.js · Cross-site Scripting
Affects Drupal Toc.jsSource CVE Database V5
Not known to be exploited · CVSS 6.1 Medium : upgrade to 3.2.1 when convenient.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 12% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.2.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 26 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade Drupal Toc.js to 3.2.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npmtoc.jspkg:npm/toc.jsOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Given the lack of an official patch at this time, European organizations should implement several specific mitigations: 1) Employ strict Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts and reduce the impact of XSS attacks. 2) Conduct thorough input validation and output encoding on all user-supplied data, especially in areas where Toc.js is used to generate dynamic content. 3) Use web application firewalls (WAFs) with rules tailored to detect and block XSS payloads targeting Drupal and Toc.js. 4) Monitor web server and application logs for suspicious activities indicative of attempted XSS exploitation. 5) Educate developers and content managers on secure coding practices and the risks of unsanitized inputs. 6) Stay updated with Drupal security advisories and apply patches promptly once available. 7) Consider isolating or disabling Toc.js functionality if it is not essential to reduce the attack surface until a fix is released.
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.