GHSA-7p7h-4mm5-852v

    Dashboard / Vulnerabilities / GHSA-7p7h-4mm5-852v

    GHSA-7p7h-4mm5-852v

    Published: 7 Jun 2021Last Modified: 10 Sept 2026

    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.

    Affected packages

    Package

    Name: trim-newlines

    Purl: pkg:npm/trim-newlines

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -3.0.1

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-7p7h-4mm5-852v | CVE-DB