DRUPAL-CONTRIB-2023-043 Provides [highlight.php](https://github.com/scrivo/highlight.php "highlight.php") integration to Drupal, allowing <code> blocks to be automa
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/8 | All versions | 1.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.