Advisory

GHSA-7p7h-4mm5-852v

Also known as: CVE-2021-33623

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-06-07 22:10 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

trim-newlines

npm · All systems

Affected

  • introduced 0, fixed 3.0.1 (semver)

Fixed versions

3.0.1

Fix

trim-newlines

npm · All systems

Affected

  • introduced 4.0.0, fixed 4.0.1 (semver)

Fixed versions

4.0.1

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