Vulnerability library
Security checkFebruary 14, 2025

@octokit/request-error has a Regular Expression in index that Leads to ReDoS Vulnerability Due to Catastrophic Backtrack

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

A Regular Expression Denial of Service (ReDoS) vulnerability exists in the processing of HTTP request headers. By sending an authorization header containing an excessively long sequence of spaces followed by a newline and “@”, an attacker can exploit inefficient regular expression processing, leading to excessive resource consumption.

Recommendation

Update the @octokit/request-error package to the latest compatible version. Followings are version details:

  • Affected version(s): **>= 6.0.0, < 6.1.7 >= 1.0.0, < 5.1.1**
  • Patched version(s): **6.1.7 5.1.1**

References

Could your website be exposed too?

SmartScanner can check your website for @octokit/request-error has a Regular Expression in index that Leads to ReDoS Vulnerability Due to Catastrophic Backtrack and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 14, 2025