Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/13079?format=api",
    "purl": "pkg:pypi/webargs@5.1.3",
    "type": "pypi",
    "namespace": "",
    "name": "webargs",
    "version": "5.1.3",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "5.5.3",
    "latest_non_vulnerable_version": "5.5.3",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/35502?format=api",
            "vulnerability_id": "VCID-11rq-guar-cudu",
            "summary": "flaskparser.py in Webargs 5.x through 5.5.2 doesn't check that the Content-Type header is application/json when receiving JSON input. If the request body is valid JSON, it will accept it even if the content type is application/x-www-form-urlencoded. This allows for JSON POST requests to be made across domains, leading to CSRF.",
            "references": [
                {
                    "reference_url": "https://github.com/advisories/GHSA-fjq3-5pxw-4wj4",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-fjq3-5pxw-4wj4"
                },
                {
                    "reference_url": "https://webargs.readthedocs.io/en/latest/changelog.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://webargs.readthedocs.io/en/latest/changelog.html"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/14976?format=api",
                    "purl": "pkg:pypi/webargs@5.5.3",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/webargs@5.5.3"
                }
            ],
            "aliases": [
                "CVE-2020-7965",
                "GHSA-fjq3-5pxw-4wj4",
                "PYSEC-2020-156"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-11rq-guar-cudu"
        }
    ],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/35328?format=api",
            "vulnerability_id": "VCID-97cu-3bp8-cfhk",
            "summary": "An issue was discovered in webargs before 5.1.3, as used with marshmallow and other products. JSON parsing uses a short-lived cache to store the parsed JSON body. This cache is not thread-safe, meaning that incorrect JSON payloads could have been parsed for concurrent requests.",
            "references": [
                {
                    "reference_url": "https://github.com/advisories/GHSA-8554-jxcw-454q",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-8554-jxcw-454q"
                },
                {
                    "reference_url": "https://github.com/marshmallow-code/webargs",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/marshmallow-code/webargs"
                },
                {
                    "reference_url": "https://github.com/marshmallow-code/webargs/commit/716bd8d1f24c84aaf99170efaa17d1d34206f6c0",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/marshmallow-code/webargs/commit/716bd8d1f24c84aaf99170efaa17d1d34206f6c0"
                },
                {
                    "reference_url": "https://github.com/marshmallow-code/webargs/issues/371",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/marshmallow-code/webargs/issues/371"
                },
                {
                    "reference_url": "https://github.com/marshmallow-code/webargs/pull/373",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/marshmallow-code/webargs/pull/373"
                },
                {
                    "reference_url": "https://github.com/pypa/advisory-database/tree/main/vulns/webargs/PYSEC-2019-139.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/pypa/advisory-database/tree/main/vulns/webargs/PYSEC-2019-139.yaml"
                },
                {
                    "reference_url": "https://webargs.readthedocs.io/en/latest/changelog.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://webargs.readthedocs.io/en/latest/changelog.html"
                },
                {
                    "reference_url": "https://webargs.readthedocs.io/en/latest/changelog.html#id24",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://webargs.readthedocs.io/en/latest/changelog.html#id24"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2019-9710",
                    "reference_id": "CVE-2019-9710",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-9710"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/13079?format=api",
                    "purl": "pkg:pypi/webargs@5.1.3",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-11rq-guar-cudu"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/webargs@5.1.3"
                }
            ],
            "aliases": [
                "CVE-2019-9710",
                "GHSA-8554-jxcw-454q",
                "PYSEC-2019-139"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-97cu-3bp8-cfhk"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/webargs@5.1.3"
}