Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/45429?format=api",
    "vulnerability_id": "VCID-nm8n-5rm1-xyec",
    "summary": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in @apollo/server.",
    "aliases": [
        {
            "alias": "GHSA-68jh-rf6x-836f"
        },
        {
            "alias": "GMS-2023-1869"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/65594?format=api",
            "purl": "pkg:npm/%40apollo/server@4.7.4",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540apollo/server@4.7.4"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/65593?format=api",
            "purl": "pkg:npm/%40apollo/server@4.7.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-nm8n-5rm1-xyec"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/%2540apollo/server@4.7.1"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/apollographql/apollo-server",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "LOW",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/apollographql/apollo-server"
        },
        {
            "reference_url": "https://github.com/apollographql/apollo-server/commit/0adaf80d1ee51d8c7e5fd863c04478536d15eb8c",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "LOW",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/apollographql/apollo-server/commit/0adaf80d1ee51d8c7e5fd863c04478536d15eb8c"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-68jh-rf6x-836f",
            "reference_id": "GHSA-68jh-rf6x-836f",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-68jh-rf6x-836f"
        },
        {
            "reference_url": "https://github.com/apollographql/apollo-server/security/advisories/GHSA-68jh-rf6x-836f",
            "reference_id": "GHSA-68jh-rf6x-836f",
            "reference_type": "",
            "scores": [
                {
                    "value": "LOW",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/apollographql/apollo-server/security/advisories/GHSA-68jh-rf6x-836f"
        }
    ],
    "weaknesses": [
        {
            "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": 79,
            "name": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
            "description": "The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users."
        },
        {
            "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": "0.1 - 3",
    "exploitability": "0.5",
    "weighted_severity": "2.7",
    "risk_score": 1.4,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-nm8n-5rm1-xyec"
}