highlightjs-cshtml-razor is vulnerable to Regular Expression Denial of Service (ReDoS)
53
Medium Risk
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via Polynomial Backtracking in Razor syntax highlighting. The vulnerability stemmed from an inefficient regex pattern used to parse @ directives in Razor code. An attacker could exploit this flaw by injecting a malicious string with excessive consecutive characters, causing catastrophic backtracking that exponentially increases CPU processing time and leads to application hang or denial of service.
You are affected if you are using a version that falls within the vulnerable range.
highlightjs-cshtml-razor is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 2.0.0 - 2.1.2.
Upgrade the highlightjs-cshtml-razor library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant