Advisory

GHSA-9fhw-r42p-5c7r

Also known as: CVE-2021-27405

Summary

Regular expression Denial of Service in @progfay/scrapbox-parser

Details

Impact

A Regular expression Denial of Service flaw was found in the @progfay/scrapbox-parser package before 6.0.3, 7.0.2 for Node.js.
The attacker that is able to be parsed a specially crafted text may cause the application to consume an excessive amount of CPU.

Patches

Upgrade to version 6.0.3, 7.0.2 or later.

Workarounds

Avoid to parse text with a lot of [ chars.

References

  • https://github.com/progfay/scrapbox-parser/pull/519
  • https://github.com/progfay/scrapbox-parser/pull/539
  • https://github.com/progfay/scrapbox-parser/pull/540
  • https://cve.mitre.org/cgi-bin/cvename.cgi?name=2021-27405
  • https://snyk.io/vuln/SNYK-JS-PROGFAYSCRAPBOXPARSER-1076803

For more information
If you have any questions or comments about this advisory:

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-03-01 20:44 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

@progfay/scrapbox-parser

npm · All systems

Affected

  • introduced 0, fixed 6.0.3 (semver)

Fixed versions

6.0.3

Fix

@progfay/scrapbox-parser

npm · All systems

Affected

  • introduced 7.0.0, fixed 7.0.2 (semver)

Fixed versions

7.0.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences