DRUPAL-CONTRIB-2025-077

See a problem?
Import Source
https://github.com/DrupalSecurityTeam/drupal-advisory-database/blob/main/advisories/toc_js/DRUPAL-CONTRIB-2025-077.json
JSON Data
https://api.osv.dev/v1/vulns/DRUPAL-CONTRIB-2025-077
Aliases
Published
2025-06-25T18:41:06Z
Modified
2026-09-10T03:46:16Z
Summary
[none]
Details

This module enables you to generate Table of content of your pages given a configuration.

The module doesn't sufficiently sanitise data attributes allowing persistent Cross-site Scripting (XSS) attacks.

This vulnerability is mitigated by the fact that an attacker must have a role with permission to enter HTML tags containing specific data attributes using other modules.

References
Credits

Affected packages

Packagist:https://packages.drupal.org/8 / drupal/toc_js

Package

Name
drupal/toc_js
Purl
pkg:composer/drupal/toc_js?repository_url=https:%2F%2Fpackages.drupal.org%2F8

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.2.1
Database specific
Show details
{
    "constraint": "<3.2.1"
}

Database specific

affected_versions
"<3.2.1"
source
"https://github.com/DrupalSecurityTeam/drupal-advisory-database/blob/main/advisories/toc_js/DRUPAL-CONTRIB-2025-077.json"