ADVISORIES

Drupal Security Advisory

DRUPAL-CONTRIB-2025-077

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.

Affected packages

EcosystemPackageAffected versions
Packagist:https://packages.drupal.org/8drupal/toc_js
All versions before 3.2.1 (fixed in 3.2.1)

References