GHSA-65xh-hh78-6454: Brotkrueml/codehighlight Denial of Service Vulnerability
MODERATEGHSA-65xh-hh78-6454 is a MODERATE (CVSS 5.0) denial of service vulnerability (General Security Weakness) affecting Brotkrueml/codehighlight libraries in the Packagist ecosystem. The issue involves denial of service in extension "code highlight" (codehighlight). Remediation is available by upgrading affected packages to version 2.7.0.
GHSA-65xh-hh78-6454 at a Glance
Security Impact
CVSS: 5.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L/E:F/RL:O/RC:C).
How to Fix GHSA-65xh-hh78-6454
To remediate this vulnerability, upgrade all affected Brotkrueml/codehighlight dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade brotkrueml/codehighlight to 2.7.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for brotkrueml/codehighlight
How to Check if You Are Affected
To determine whether your application is affected by GHSA-65xh-hh78-6454, inspect your project dependencies for Brotkrueml/codehighlight:
inspect dependencies for brotkrueml/codehighlight
Analyze the terminal output to locate any version of Brotkrueml/codehighlight in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.7.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Brotkrueml/codehighlight, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-65xh-hh78-6454 Affected Brotkrueml/codehighlight Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
brotkrueml/codehighlight
|
Packagist |
< 2.7.0
|
2.7.0
|
References
Frequently Asked Questions
What is GHSA-65xh-hh78-6454?
Which Brotkrueml/codehighlight versions are affected?
What version fixes GHSA-65xh-hh78-6454?
Is brotkrueml/codehighlight affected?
What is the CVSS score of GHSA-65xh-hh78-6454?
What CWE is associated with GHSA-65xh-hh78-6454?
How can I check Packagist dependencies for GHSA-65xh-hh78-6454?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-65xh-hh78-6454",
"modified" : "2024-05-15T18:03:12Z",
"published" : "2024-05-15T18:03:12Z",
"aliases" : [ ],
"summary" : "Denial of Service in extension \"Code Highlight\" (codehighlight)",
"details" : "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).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L/E:F/RL:O/RC:C"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "brotkrueml/codehighlight"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.7.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/brotkrueml/codehighlight/commit/c43d46ef571a3b94a6240782423ce04bfada7fd8"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/brotkrueml/codehighlight/2021-11-10-1.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/brotkrueml/codehighlight"
}, {
"type" : "WEB",
"url" : "https://typo3.org/security/advisory/typo3-ext-sa-2021-016"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-15T18:03:12Z",
"nvd_published_at" : null
}
}