Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/23652?format=api",
    "purl": "pkg:pypi/esphome@1.13.0b6",
    "type": "pypi",
    "namespace": "",
    "name": "esphome",
    "version": "1.13.0b6",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2021.9.2",
    "latest_non_vulnerable_version": "2025.12.7",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/35877?format=api",
            "vulnerability_id": "VCID-mff6-1k8j-jbhp",
            "summary": "ESPHome is a system to control the ESP8266/ESP32. Anyone with web_server enabled and HTTP basic auth configured on version 2021.9.1 or older is vulnerable to an issue in which `web_server` allows over-the-air (OTA) updates without checking user defined basic auth username & password. This issue is patched in version 2021.9.2. As a workaround, one may disable or remove `web_server`.",
            "references": [
                {
                    "reference_url": "https://github.com/esphome/esphome",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/esphome/esphome"
                },
                {
                    "reference_url": "https://github.com/esphome/esphome/commit/2234f6aacf8cc653307fed80f3750317a82c4f83",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/esphome/esphome/commit/2234f6aacf8cc653307fed80f3750317a82c4f83"
                },
                {
                    "reference_url": "https://github.com/esphome/esphome/commit/be965a60eba6bb769e2a5afdbc8eed132f077a59",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/esphome/esphome/commit/be965a60eba6bb769e2a5afdbc8eed132f077a59"
                },
                {
                    "reference_url": "https://github.com/esphome/esphome/pull/2409",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/esphome/esphome/pull/2409"
                },
                {
                    "reference_url": "https://github.com/esphome/esphome/pull/2409/commits/207cde1667d8c799a197b78ca8a5a14de8d5ca1e",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/esphome/esphome/pull/2409/commits/207cde1667d8c799a197b78ca8a5a14de8d5ca1e"
                },
                {
                    "reference_url": "https://github.com/esphome/esphome/releases/tag/2021.9.2",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/esphome/esphome/releases/tag/2021.9.2"
                },
                {
                    "reference_url": "https://github.com/esphome/esphome/security/advisories/GHSA-48mj-p7x2-5jfm",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/esphome/esphome/security/advisories/GHSA-48mj-p7x2-5jfm"
                },
                {
                    "reference_url": "https://github.com/pypa/advisory-database/tree/main/vulns/esphome/PYSEC-2021-351.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/pypa/advisory-database/tree/main/vulns/esphome/PYSEC-2021-351.yaml"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-41104",
                    "reference_id": "CVE-2021-41104",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-41104"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-48mj-p7x2-5jfm",
                    "reference_id": "GHSA-48mj-p7x2-5jfm",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-48mj-p7x2-5jfm"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/23736?format=api",
                    "purl": "pkg:pypi/esphome@2021.9.2",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/esphome@2021.9.2"
                }
            ],
            "aliases": [
                "CVE-2021-41104",
                "GHSA-48mj-p7x2-5jfm",
                "PYSEC-2021-351"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-mff6-1k8j-jbhp"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/esphome@1.13.0b6"
}