VDB
Sign up
—

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist:https://packages.drupal.org/8/drupal/toc_js
Introduced in: 0Fixed in: 3.2.1

Upgrade drupal/toc_js to 3.2.1 or newer (ecosystem packagist:https://packages.drupal.org/8).

References