Package Instance
Lookup for vulnerable packages by Package URL.
GET /api/packages/504946?format=api
{ "url": "http://public2.vulnerablecode.io/api/packages/504946?format=api", "purl": "pkg:maven/org.http4s/http4s-core_2.13@0.22.0", "type": "maven", "namespace": "org.http4s", "name": "http4s-core_2.13", "version": "0.22.0", "qualifiers": {}, "subpath": "", "is_vulnerable": true, "next_non_vulnerable_version": "0.22.15", "latest_non_vulnerable_version": "1.0.0-M38", "affected_by_vulnerabilities": [ { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/106017?format=api", "vulnerability_id": "VCID-ecme-hxe7-q7d8", "summary": "Http4s improperly parses User-Agent and Server headers\n### Impact\n\nThe `User-Agent` and `Server` header parsers are susceptible to a fatal error on certain inputs. In http4s, modeled headers are lazily parsed, so this only applies to services that explicitly request these typed headers. \n\n#### v0.21.x\n\n```scala\nval unsafe: Option[`User-Agent`] = req.headers.get(`User-Agent`)\n```\n\n#### v0.22.x, v0.23.x, v1.x\n\n```scala\nval unsafe: Option[`User-Agent`] = req.headers.get[`User-Agent`]\nval alsoUnsafe: Option[`Server`] = req.headers.get[Server]\n```\n\n### Patches\n\nFixes are released in 0.21.34, 0.22.15, 0.23.17, and 1.0.0-M38.\n\n### Workarounds\n\n#### Use the weakly typed header interface\n\n##### v0.21.x\n\n```scala\nval safe: Option[Header] = req.headers.get(\"User-Agent\".ci)\n// but don't do this\nval unsafe = header.map(_.parsed) \n```\n\n##### v0.22.x, v0.23.x, v1.x\n\n```scala\nval safe: Option[Header] = req.headers.get(ci\"User-Agent\")\n```", "references": [ { "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2023-22465", "reference_id": "", "reference_type": "", "scores": [ { "value": "0.00335", "scoring_system": "epss", "scoring_elements": "0.56629", "published_at": "2026-06-06T12:55:00Z" }, { "value": "0.00335", "scoring_system": "epss", "scoring_elements": "0.56621", "published_at": "2026-06-09T12:55:00Z" }, { "value": "0.00335", "scoring_system": "epss", "scoring_elements": "0.56602", "published_at": "2026-06-08T12:55:00Z" }, { "value": "0.00335", "scoring_system": "epss", "scoring_elements": "0.56617", "published_at": "2026-06-07T12:55:00Z" }, { "value": "0.00335", "scoring_system": "epss", "scoring_elements": "0.5657", "published_at": "2026-06-04T12:55:00Z" }, { "value": "0.00335", "scoring_system": "epss", "scoring_elements": "0.56623", "published_at": "2026-06-05T12:55:00Z" } ], "url": "https://api.first.org/data/v1/epss?cve=CVE-2023-22465" }, { "reference_url": "https://github.com/http4s/http4s", "reference_id": "", "reference_type": "", "scores": [ { "value": "7.5", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/http4s/http4s" }, { "reference_url": "https://github.com/http4s/http4s/security/advisories/GHSA-54w6-vxfh-fw7f", "reference_id": "", "reference_type": "", "scores": [ { "value": "7.5", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H" }, { "value": "HIGH", "scoring_system": "cvssv3.1_qr", "scoring_elements": "" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" }, { "value": "Track", "scoring_system": "ssvc", "scoring_elements": "SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2025-03-10T21:02:19Z/" } ], "url": "https://github.com/http4s/http4s/security/advisories/GHSA-54w6-vxfh-fw7f" }, { "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-22465", "reference_id": "", "reference_type": "", "scores": [ { "value": "7.5", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H" }, { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-22465" }, { "reference_url": "https://github.com/advisories/GHSA-54w6-vxfh-fw7f", "reference_id": "GHSA-54w6-vxfh-fw7f", "reference_type": "", "scores": [ { "value": "HIGH", "scoring_system": "cvssv3.1_qr", "scoring_elements": "" } ], "url": "https://github.com/advisories/GHSA-54w6-vxfh-fw7f" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/135734?format=api", "purl": "pkg:maven/org.http4s/http4s-core_2.13@0.22.15", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.http4s/http4s-core_2.13@0.22.15" }, { "url": "http://public2.vulnerablecode.io/api/packages/135735?format=api", "purl": "pkg:maven/org.http4s/http4s-core_2.13@0.23.17", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.http4s/http4s-core_2.13@0.23.17" }, { "url": "http://public2.vulnerablecode.io/api/packages/135736?format=api", "purl": "pkg:maven/org.http4s/http4s-core_2.13@1.0.0-M38", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.http4s/http4s-core_2.13@1.0.0-M38" } ], "aliases": [ "CVE-2023-22465", "GHSA-54w6-vxfh-fw7f" ], "risk_score": 4.0, "exploitability": "0.5", "weighted_severity": "8.0", "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ecme-hxe7-q7d8" } ], "fixing_vulnerabilities": [], "risk_score": "4.0", "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.http4s/http4s-core_2.13@0.22.0" }