Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/63684?format=api",
    "purl": "pkg:npm/ua-parser-js@0.7.33",
    "type": "npm",
    "namespace": "",
    "name": "ua-parser-js",
    "version": "0.7.33",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "0.8.1",
    "latest_non_vulnerable_version": "1.0.33",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/44263?format=api",
            "vulnerability_id": "VCID-5rba-b2bd-nfgv",
            "summary": "ReDoS Vulnerability in ua-parser-js version\n### Description:\nA regular expression denial of service (ReDoS) vulnerability has been discovered in `ua-parser-js`.\n\n### Impact:\nThis vulnerability bypass the library's `MAX_LENGTH` input limit prevention. By crafting a very-very-long user-agent string with specific pattern, an attacker can turn the script to get stuck processing for a very long time which results in a denial of service (DoS) condition.\n\n### Affected Versions:\nFrom version `0.7.30` to before versions `0.7.33` / `1.0.33`.\n\n### Patches:\nA patch has been released to remove the vulnerable regular expression, update to version `0.7.33` / `1.0.33` or later.\n\n### References:\n[Regular expression Denial of Service - ReDoS](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS)\n\n### Credits:\nThanks to @Snyk who first reported the issue.",
            "references": [
                {
                    "reference_url": "https://github.com/faisalman/ua-parser-js",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/faisalman/ua-parser-js"
                },
                {
                    "reference_url": "https://github.com/faisalman/ua-parser-js/commit/a6140a17dd0300a35cfc9cff999545f267889411",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/faisalman/ua-parser-js/commit/a6140a17dd0300a35cfc9cff999545f267889411"
                },
                {
                    "reference_url": "https://security.snyk.io/vuln/SNYK-JS-UAPARSERJS-3244450",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://security.snyk.io/vuln/SNYK-JS-UAPARSERJS-3244450"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-25927",
                    "reference_id": "CVE-2022-25927",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-25927"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-fhg7-m89q-25r3",
                    "reference_id": "GHSA-fhg7-m89q-25r3",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-fhg7-m89q-25r3"
                },
                {
                    "reference_url": "https://github.com/faisalman/ua-parser-js/security/advisories/GHSA-fhg7-m89q-25r3",
                    "reference_id": "GHSA-fhg7-m89q-25r3",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/faisalman/ua-parser-js/security/advisories/GHSA-fhg7-m89q-25r3"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/63684?format=api",
                    "purl": "pkg:npm/ua-parser-js@0.7.33",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/ua-parser-js@0.7.33"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/63685?format=api",
                    "purl": "pkg:npm/ua-parser-js@1.0.33",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/ua-parser-js@1.0.33"
                }
            ],
            "aliases": [
                "CVE-2022-25927",
                "GHSA-fhg7-m89q-25r3",
                "GMS-2023-120"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-5rba-b2bd-nfgv"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/ua-parser-js@0.7.33"
}