Vulnerability library
Security checkFebruary 18, 2025

@octokit/plugin-paginate-rest has a Regular Expression in iterator Leads to ReDoS Vulnerability Due to Catastrophic Back

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

For the npm package @octokit/plugin-paginate-rest, when calling octokit.paginate.iterator(), a specially crafted octokit instance—particularly with a malicious link parameter in the headers section of the request—can trigger a ReDoS attack.

Recommendation

Update the @octokit/plugin-paginate-rest package to the latest compatible version. Followings are version details:

  • Affected version(s): **>= 1.0.0, < 9.2.2 >= 9.3.0-beta.1, < 11.4.1**
  • Patched version(s): **9.2.2 11.4.1**

References

Could your website be exposed too?

SmartScanner can check your website for @octokit/plugin-paginate-rest has a Regular Expression in iterator Leads to ReDoS Vulnerability Due to Catastrophic Back and gives you actionable findings to investigate.

Start a free scan

Related Issues

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