Lookup for vulnerabilities affecting packages.

GET /api/vulnerabilities/43723?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/43723?format=api",
    "vulnerability_id": "VCID-q2nz-yft3-bqb2",
    "summary": "Uncontrolled Resource Consumption in trim-newlines\n@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.",
    "aliases": [
        {
            "alias": "CVE-2021-33623"
        },
        {
            "alias": "GHSA-7p7h-4mm5-852v"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/932692?format=api",
            "purl": "pkg:deb/debian/node-trim-newlines@3.0.0-1%2Bdeb11u1?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-trim-newlines@3.0.0-1%252Bdeb11u1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1051483?format=api",
            "purl": "pkg:deb/debian/node-trim-newlines@3.0.0-1%2Bdeb11u1",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-trim-newlines@3.0.0-1%252Bdeb11u1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/932691?format=api",
            "purl": "pkg:deb/debian/node-trim-newlines@3.0.0%2B~3.0.0-1?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-trim-newlines@3.0.0%252B~3.0.0-1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/76296?format=api",
            "purl": "pkg:npm/trim-newlines@3.0.1",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/trim-newlines@3.0.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/76298?format=api",
            "purl": "pkg:npm/trim-newlines@4.0.1",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/trim-newlines@4.0.1"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1051482?format=api",
            "purl": "pkg:deb/debian/node-trim-newlines@1.0.0-1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-q2nz-yft3-bqb2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-trim-newlines@1.0.0-1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/250706?format=api",
            "purl": "pkg:npm/trim-newlines@1.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-q2nz-yft3-bqb2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/trim-newlines@1.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/250707?format=api",
            "purl": "pkg:npm/trim-newlines@2.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-q2nz-yft3-bqb2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/trim-newlines@2.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/250708?format=api",
            "purl": "pkg:npm/trim-newlines@3.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-q2nz-yft3-bqb2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/trim-newlines@3.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/76297?format=api",
            "purl": "pkg:npm/trim-newlines@4.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-q2nz-yft3-bqb2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/trim-newlines@4.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/98400?format=api",
            "purl": "pkg:rpm/redhat/ovirt-web-ui@1.9.0-1?arch=el8ev",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-c86y-234c-s3hu"
                },
                {
                    "vulnerability": "VCID-eg6c-bq3z-4qcn"
                },
                {
                    "vulnerability": "VCID-q2nz-yft3-bqb2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:rpm/redhat/ovirt-web-ui@1.9.0-1%3Farch=el8ev"
        }
    ],
    "references": [
        {
            "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-33623.json",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                }
            ],
            "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-33623.json"
        },
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2021-33623",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.01497",
                    "scoring_system": "epss",
                    "scoring_elements": "0.81081",
                    "published_at": "2026-04-04T12:55:00Z"
                },
                {
                    "value": "0.01497",
                    "scoring_system": "epss",
                    "scoring_elements": "0.81057",
                    "published_at": "2026-04-02T12:55:00Z"
                },
                {
                    "value": "0.01497",
                    "scoring_system": "epss",
                    "scoring_elements": "0.81048",
                    "published_at": "2026-04-01T12:55:00Z"
                },
                {
                    "value": "0.02286",
                    "scoring_system": "epss",
                    "scoring_elements": "0.84799",
                    "published_at": "2026-05-07T12:55:00Z"
                },
                {
                    "value": "0.02286",
                    "scoring_system": "epss",
                    "scoring_elements": "0.84661",
                    "published_at": "2026-04-07T12:55:00Z"
                },
                {
                    "value": "0.02286",
                    "scoring_system": "epss",
                    "scoring_elements": "0.84683",
                    "published_at": "2026-04-08T12:55:00Z"
                },
                {
                    "value": "0.02286",
                    "scoring_system": "epss",
                    "scoring_elements": "0.8469",
                    "published_at": "2026-04-09T12:55:00Z"
                },
                {
                    "value": "0.02286",
                    "scoring_system": "epss",
                    "scoring_elements": "0.84708",
                    "published_at": "2026-04-11T12:55:00Z"
                },
                {
                    "value": "0.02286",
                    "scoring_system": "epss",
                    "scoring_elements": "0.84704",
                    "published_at": "2026-04-12T12:55:00Z"
                },
                {
                    "value": "0.02286",
                    "scoring_system": "epss",
                    "scoring_elements": "0.84698",
                    "published_at": "2026-04-13T12:55:00Z"
                },
                {
                    "value": "0.02286",
                    "scoring_system": "epss",
                    "scoring_elements": "0.84719",
                    "published_at": "2026-04-16T12:55:00Z"
                },
                {
                    "value": "0.02286",
                    "scoring_system": "epss",
                    "scoring_elements": "0.8472",
                    "published_at": "2026-04-18T12:55:00Z"
                },
                {
                    "value": "0.02286",
                    "scoring_system": "epss",
                    "scoring_elements": "0.84721",
                    "published_at": "2026-04-21T12:55:00Z"
                },
                {
                    "value": "0.02286",
                    "scoring_system": "epss",
                    "scoring_elements": "0.84748",
                    "published_at": "2026-04-24T12:55:00Z"
                },
                {
                    "value": "0.02286",
                    "scoring_system": "epss",
                    "scoring_elements": "0.84758",
                    "published_at": "2026-04-26T12:55:00Z"
                },
                {
                    "value": "0.02286",
                    "scoring_system": "epss",
                    "scoring_elements": "0.84757",
                    "published_at": "2026-04-29T12:55:00Z"
                },
                {
                    "value": "0.02286",
                    "scoring_system": "epss",
                    "scoring_elements": "0.84773",
                    "published_at": "2026-05-05T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2021-33623"
        },
        {
            "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-33623",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-33623"
        },
        {
            "reference_url": "https://github.com/sindresorhus/trim-newlines",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "HIGH",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/sindresorhus/trim-newlines"
        },
        {
            "reference_url": "https://github.com/sindresorhus/trim-newlines/commit/25246c6ce5eea1c82d448998733a6302a4350d91",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "HIGH",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/sindresorhus/trim-newlines/commit/25246c6ce5eea1c82d448998733a6302a4350d91"
        },
        {
            "reference_url": "https://github.com/sindresorhus/trim-newlines/commit/b10d5f4afef832b16bc56d49fc52c68cbd403869",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "HIGH",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/sindresorhus/trim-newlines/commit/b10d5f4afef832b16bc56d49fc52c68cbd403869"
        },
        {
            "reference_url": "https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "HIGH",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1"
        },
        {
            "reference_url": "https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "HIGH",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-33623",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "HIGH",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-33623"
        },
        {
            "reference_url": "https://security.netapp.com/advisory/ntap-20210702-0007",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "HIGH",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://security.netapp.com/advisory/ntap-20210702-0007"
        },
        {
            "reference_url": "https://security.netapp.com/advisory/ntap-20210702-0007/",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://security.netapp.com/advisory/ntap-20210702-0007/"
        },
        {
            "reference_url": "https://www.npmjs.com/package/trim-newlines",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "HIGH",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://www.npmjs.com/package/trim-newlines"
        },
        {
            "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1966615",
            "reference_id": "1966615",
            "reference_type": "",
            "scores": [],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1966615"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-7p7h-4mm5-852v",
            "reference_id": "GHSA-7p7h-4mm5-852v",
            "reference_type": "",
            "scores": [
                {
                    "value": "HIGH",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/advisories/GHSA-7p7h-4mm5-852v"
        },
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2022:5555",
            "reference_id": "RHSA-2022:5555",
            "reference_type": "",
            "scores": [],
            "url": "https://access.redhat.com/errata/RHSA-2022:5555"
        },
        {
            "reference_url": "https://usn.ubuntu.com/5999-1/",
            "reference_id": "USN-5999-1",
            "reference_type": "",
            "scores": [],
            "url": "https://usn.ubuntu.com/5999-1/"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 400,
            "name": "Uncontrolled Resource Consumption",
            "description": "The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources."
        },
        {
            "cwe_id": 1035,
            "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."
        },
        {
            "cwe_id": 937,
            "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."
        }
    ],
    "exploits": [],
    "severity_range_score": "7.0 - 8.9",
    "exploitability": "0.5",
    "weighted_severity": "8.0",
    "risk_score": 4.0,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-q2nz-yft3-bqb2"
}