GHSA-65xh-hh78-6454 Denial of Service in extension "Code Highlight" (codehighlight)

Not scored Published

A vulnerable bundled library in the Code Highlight extension allows attackers to cause a denial of service via ReDoS.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-65xh-hh78-6454?

GHSA-65xh-hh78-6454 is a denial of service vulnerability in brotkrueml/codehighlight, published on 15 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The codehighlight extension bundles a vulnerable version of the 3rd party JavaScript component “prism” which is known to be vulnerable against Regular expression Denial of Service (ReDoS).

Which versions are affected by GHSA-65xh-hh78-6454?

2 open source packages ship an affected version, including brotkrueml/codehighlight.

PackageAffectedFixed in
brotkrueml/codehighlight PackagistAll versions2.7.0
brotkrueml/codehighlight PackagistAll versions2.7.0

How do I fix GHSA-65xh-hh78-6454?

Upgrade brotkrueml/codehighlight to 2.7.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is GHSA-65xh-hh78-6454 being exploited?

There is no known exploitation of GHSA-65xh-hh78-6454 in the wild and no public exploit code.

Sources

Is GHSA-65xh-hh78-6454 in your software?

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

Check your SBOMs for free