@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.
{
"nvd_published_at": "2021-05-28T18:15:00Z",
"severity": "HIGH",
"github_reviewed_at": "2021-06-01T18:22:04Z",
"cwe_ids": [
"CWE-400"
],
"github_reviewed": true
}