Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/19352?format=api",
    "vulnerability_id": "VCID-xbv9-wsyx-xudq",
    "summary": "Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in PowerShell.",
    "aliases": [
        {
            "alias": "GHSA-jcmq-5rrv-j2g4"
        },
        {
            "alias": "GMS-2024-88"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/58819?format=api",
            "purl": "pkg:nuget/PowerShell@7.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2zmu-938a-83em"
                },
                {
                    "vulnerability": "VCID-5djb-fjwx-kudc"
                },
                {
                    "vulnerability": "VCID-5n44-kyju-8uan"
                },
                {
                    "vulnerability": "VCID-6hkw-6113-cqgk"
                },
                {
                    "vulnerability": "VCID-8s5z-ztba-puag"
                },
                {
                    "vulnerability": "VCID-c23g-vu8z-3ycc"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/PowerShell@7.0.0"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/663594?format=api",
            "purl": "pkg:nuget/PowerShell@1.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-xbv9-wsyx-xudq"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/PowerShell@1.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/663595?format=api",
            "purl": "pkg:nuget/PowerShell@6.2.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-xbv9-wsyx-xudq"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/PowerShell@6.2.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/663596?format=api",
            "purl": "pkg:nuget/PowerShell@6.2.3",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-xbv9-wsyx-xudq"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/PowerShell@6.2.3"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/663597?format=api",
            "purl": "pkg:nuget/PowerShell@6.2.4",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-xbv9-wsyx-xudq"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/PowerShell@6.2.4"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/663598?format=api",
            "purl": "pkg:nuget/PowerShell@6.2.5",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-xbv9-wsyx-xudq"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/PowerShell@6.2.5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/663599?format=api",
            "purl": "pkg:nuget/PowerShell@6.2.6",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-xbv9-wsyx-xudq"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/PowerShell@6.2.6"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/663600?format=api",
            "purl": "pkg:nuget/PowerShell@6.2.7",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-xbv9-wsyx-xudq"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/PowerShell@6.2.7"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/advisories/GHSA-jcmq-5rrv-j2g4",
            "reference_id": "GHSA-jcmq-5rrv-j2g4",
            "reference_type": "",
            "scores": [
                {
                    "value": "HIGH",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/advisories/GHSA-jcmq-5rrv-j2g4"
        },
        {
            "reference_url": "https://github.com/PowerShell/PowerShell/security/advisories/GHSA-jcmq-5rrv-j2g4",
            "reference_id": "GHSA-jcmq-5rrv-j2g4",
            "reference_type": "",
            "scores": [
                {
                    "value": "8.8",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                },
                {
                    "value": "HIGH",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                },
                {
                    "value": "HIGH",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/PowerShell/PowerShell/security/advisories/GHSA-jcmq-5rrv-j2g4"
        }
    ],
    "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": 78,
            "name": "Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')",
            "description": "The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component."
        },
        {
            "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-xbv9-wsyx-xudq"
}