GHSA-7p7h-4mm5-852v

Suggest an improvement
Source
https://github.com/advisories/GHSA-7p7h-4mm5-852v
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/06/GHSA-7p7h-4mm5-852v/GHSA-7p7h-4mm5-852v.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7p7h-4mm5-852v
Aliases
Published
2021-06-07T22:10:39Z
Modified
2023-11-01T05:17:28.892506Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Uncontrolled Resource Consumption in trim-newlines
Details

@rkesters/gnuplot is an easy to use node module to draw charts using gnuplot and ps2pdf. The trim-newlines package before 3.0.1 and 4.x before 4.0.1 for Node.js has an issue related to regular expression denial-of-service (ReDoS) for the .end() method.

References

Affected packages

npm / trim-newlines

Package

Affected ranges

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

Ecosystem specific

{
    "affected_functions": [
        "(trim-newlines).trimNewlines.end"
    ]
}

npm / trim-newlines

Package

Affected ranges

Type
SEMVER
Events
Introduced
4.0.0
Fixed
4.0.1

Affected versions

4.*

4.0.0

Ecosystem specific

{
    "affected_functions": [
        "(trim-newlines).trimNewlines.end"
    ]
}