GHSA-4cv2-xc5f-px8h Denial of Service in extension "Code Highlight" (codehighlight)
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
Which versions are affected by GHSA-4cv2-xc5f-px8h?
2 open source packages ship an affected version, including brotkrueml/codehighlight.
| Package | Affected | Fixed in |
|---|---|---|
brotkrueml/codehighlight Packagist | All versions | 2.5.0 |
brotkrueml/codehighlight Packagist | All versions | 2.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.