GHSA-4cv2-xc5f-px8h Denial of Service in extension "Code Highlight" (codehighlight)

Not scored Published

Attackers can cause denial of service in the Code Highlight extension via ReDoS in the bundled Prism library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-4cv2-xc5f-px8h?

GHSA-4cv2-xc5f-px8h 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, and only if a user opens a file or follows a link.

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-4cv2-xc5f-px8h?

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

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

How do I fix GHSA-4cv2-xc5f-px8h?

Upgrade brotkrueml/codehighlight to 2.5.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-4cv2-xc5f-px8h being exploited?

There is no known exploitation of GHSA-4cv2-xc5f-px8h in the wild and no public exploit code.

Sources

Is GHSA-4cv2-xc5f-px8h in your software?

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

Check your SBOMs for free