Vulnerability library
Security checkNovember 29, 2023

Uncontrolled Resource Consumption in trim-newlines

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmtrim-newlines

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

@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.

Recommendation

Update the trim-newlines package to the latest compatible version. Followings are version details:

  • Affected version(s): **= 4.0.0 < 3.0.1**
  • Patched version(s): **4.0.1 3.0.1**

References

Could your website be exposed too?

SmartScanner can check your website for Uncontrolled Resource Consumption in trim-newlines and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated November 29, 2023