GHSA-9fhw-r42p-5c7r

Suggest an improvement
Source
https://github.com/advisories/GHSA-9fhw-r42p-5c7r
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-9fhw-r42p-5c7r/GHSA-9fhw-r42p-5c7r.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9fhw-r42p-5c7r
Aliases
  • CVE-2021-27405
Published
2021-03-01T20:44:44Z
Modified
2023-11-08T04:05:24.670484Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
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: * Open an issue in github.com/progfay/scrapbox-parser

Database specific
{
    "nvd_published_at": "2021-02-19T05:15:00Z",
    "severity": "MODERATE",
    "cwe_ids": [
        "CWE-400"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2021-02-26T19:49:07Z"
}
References

Affected packages

npm / @progfay/scrapbox-parser

Package

Name
@progfay/scrapbox-parser
View open source insights on deps.dev
Purl
pkg:npm/%40progfay/scrapbox-parser

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.0.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-9fhw-r42p-5c7r/GHSA-9fhw-r42p-5c7r.json"

npm / @progfay/scrapbox-parser

Package

Name
@progfay/scrapbox-parser
View open source insights on deps.dev
Purl
pkg:npm/%40progfay/scrapbox-parser

Affected ranges

Type
SEMVER
Events
Introduced
7.0.0
Fixed
7.0.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-9fhw-r42p-5c7r/GHSA-9fhw-r42p-5c7r.json"