Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/22837?format=api",
    "vulnerability_id": "VCID-15hj-tpge-5qed",
    "summary": "fast-xml-parser has stack overflow in XMLBuilder with preserveOrder\nApplication crashes with stack overflow when user use XML builder with `prserveOrder:true` for following or similar input\n\n```\n[{\n'foo': [\n{ 'bar': [{ '@_V': 'baz' }] }\n]\n}]\n```\n\nCause: `arrToStr` was not validating if the input is an array or a string and treating all non-array values as text content.\n_What kind of vulnerability is it? Who is impacted?_",
    "aliases": [
        {
            "alias": "CVE-2026-27942"
        },
        {
            "alias": "GHSA-fj3w-jwp8-x2g3"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/72846?format=api",
            "purl": "pkg:npm/fast-xml-parser@4.5.4",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/fast-xml-parser@4.5.4"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/73112?format=api",
            "purl": "pkg:npm/fast-xml-parser@5.3.8",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/fast-xml-parser@5.3.8"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/73111?format=api",
            "purl": "pkg:npm/fast-xml-parser@4.0.0-beta.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-15hj-tpge-5qed"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/fast-xml-parser@4.0.0-beta.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/72845?format=api",
            "purl": "pkg:npm/fast-xml-parser@5.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-15hj-tpge-5qed"
                },
                {
                    "vulnerability": "VCID-4w7s-yjr2-pqcj"
                },
                {
                    "vulnerability": "VCID-bu27-qt1w-4fcj"
                },
                {
                    "vulnerability": "VCID-k3hb-6max-4yd1"
                },
                {
                    "vulnerability": "VCID-zuzg-xza6-b7b6"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/fast-xml-parser@5.0.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-27942.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-2026-27942.json"
        },
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2026-27942",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.00018",
                    "scoring_system": "epss",
                    "scoring_elements": "0.05197",
                    "published_at": "2026-05-30T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-27942"
        },
        {
            "reference_url": "https://github.com/NaturalIntelligence/fast-xml-parser",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "2.7",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U"
                },
                {
                    "value": "LOW",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/NaturalIntelligence/fast-xml-parser"
        },
        {
            "reference_url": "https://github.com/NaturalIntelligence/fast-xml-parser/commit/c13a961910f14986295dd28484eee830fa1a0e8a",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "2.7",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U"
                },
                {
                    "value": "LOW",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/NaturalIntelligence/fast-xml-parser/commit/c13a961910f14986295dd28484eee830fa1a0e8a"
        },
        {
            "reference_url": "https://github.com/NaturalIntelligence/fast-xml-parser/pull/791",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "2.7",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U"
                },
                {
                    "value": "LOW",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/NaturalIntelligence/fast-xml-parser/pull/791"
        },
        {
            "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=2442938",
            "reference_id": "2442938",
            "reference_type": "",
            "scores": [],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2442938"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-27942",
            "reference_id": "CVE-2026-27942",
            "reference_type": "",
            "scores": [
                {
                    "value": "2.7",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U"
                },
                {
                    "value": "LOW",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-27942"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-fj3w-jwp8-x2g3",
            "reference_id": "GHSA-fj3w-jwp8-x2g3",
            "reference_type": "",
            "scores": [
                {
                    "value": "LOW",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/advisories/GHSA-fj3w-jwp8-x2g3"
        },
        {
            "reference_url": "https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-fj3w-jwp8-x2g3",
            "reference_id": "GHSA-fj3w-jwp8-x2g3",
            "reference_type": "",
            "scores": [
                {
                    "value": "LOW",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                },
                {
                    "value": "2.7",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U"
                },
                {
                    "value": "LOW",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-fj3w-jwp8-x2g3"
        },
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2026:12277",
            "reference_id": "RHSA-2026:12277",
            "reference_type": "",
            "scores": [],
            "url": "https://access.redhat.com/errata/RHSA-2026:12277"
        },
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2026:6174",
            "reference_id": "RHSA-2026:6174",
            "reference_type": "",
            "scores": [],
            "url": "https://access.redhat.com/errata/RHSA-2026:6174"
        },
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2026:6802",
            "reference_id": "RHSA-2026:6802",
            "reference_type": "",
            "scores": [],
            "url": "https://access.redhat.com/errata/RHSA-2026:6802"
        },
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2026:7110",
            "reference_id": "RHSA-2026:7110",
            "reference_type": "",
            "scores": [],
            "url": "https://access.redhat.com/errata/RHSA-2026:7110"
        },
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2026:7128",
            "reference_id": "RHSA-2026:7128",
            "reference_type": "",
            "scores": [],
            "url": "https://access.redhat.com/errata/RHSA-2026:7128"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 120,
            "name": "Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')",
            "description": "The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow."
        },
        {
            "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."
        },
        {
            "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": 776,
            "name": "Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')",
            "description": "The product uses XML documents and allows their structure to be defined with a Document Type Definition (DTD), but it does not properly control the number of recursive definitions of entities."
        }
    ],
    "exploits": [],
    "severity_range_score": "0.1 - 7.5",
    "exploitability": "0.5",
    "weighted_severity": "6.8",
    "risk_score": 3.4,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-15hj-tpge-5qed"
}