DRUPAL-CONTRIB-2023-043 Provides [highlight.php](https://github.com/scrivo/highlight.php "highlight.php") integration to Drupal, allowing <code> blocks to be automa

Not scored Published

Insufficient filtering in the Drupal highlight.php module allows attackers to inject malicious scripts via user-entered data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is DRUPAL-CONTRIB-2023-043?

DRUPAL-CONTRIB-2023-043 is a cross-site scripting vulnerability in drupal/highlight_php, published on 6 Sep 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Provides [highlight.php](https://github.com/scrivo/highlight.php "highlight.php") integration to Drupal, allowing <code> blocks to be automatically highlighted with the correct language.

The module's Twig function doesn't sufficiently filter user-entered data.

Which versions are affected by DRUPAL-CONTRIB-2023-043?

Linux distribution packages (1)
drupal/highlight_php Packagist:https://packages.drupal.org/8All versions1.0.1

How do I fix DRUPAL-CONTRIB-2023-043?

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 DRUPAL-CONTRIB-2023-043 being exploited?

There is no known exploitation of DRUPAL-CONTRIB-2023-043 in the wild and no public exploit code.

Sources

Is DRUPAL-CONTRIB-2023-043 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free