ADVISORIES

GitHub Advisory Database

GHSA-7p7h-4mm5-852v

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.

Affected packages

EcosystemPackageAffected versions
npmtrim-newlines
All versions before 3.0.1 (fixed in 3.0.1)
npmtrim-newlines
From 4.0.0 before 4.0.1 (fixed in 4.0.1)

References