Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/64057?format=api",
    "purl": "pkg:nuget/LiteDB@5.0.13",
    "type": "nuget",
    "namespace": "",
    "name": "LiteDB",
    "version": "5.0.13",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "5.0.13",
    "latest_non_vulnerable_version": "5.0.13",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/44525?format=api",
            "vulnerability_id": "VCID-ty2n-gcpe-nye2",
            "summary": "LiteDB may deserialize bad JSON on object type using _type\nLiteDB is a small, fast and lightweight .NET NoSQL embedded database. Versions prior to 5.0.13 are subject to Deserialization of Untrusted Data. LiteDB uses a special field in JSON documents to cast different types from `BsonDocument` to POCO classes. When instances of an object are not the same of class, `BsonMapper` use a special field `_type` string info with full class name with assembly to be loaded and fit into your model. If your end-user can send to your app a plain JSON string, deserialization can load an unsafe object to fit into your model. This issue is patched in version 5.0.13 with some basic fixes to avoid this, but is not 100% guaranteed when using `Object` type. The next major version will contain an allow-list to select what kind of Assembly can be loaded. Workarounds are detailed in the vendor advisory.",
            "references": [
                {
                    "reference_url": "https://github.com/mbdavid/LiteDB/commit/4382ff4dd0dd8b8b16a4e37dfd29727c5f70f93f",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/mbdavid/LiteDB/commit/4382ff4dd0dd8b8b16a4e37dfd29727c5f70f93f"
                },
                {
                    "reference_url": "https://github.com/mbdavid/LiteDB/commit/d72c6774e6a13de2cfcd7d477d3575efeb75c8f2",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/mbdavid/LiteDB/commit/d72c6774e6a13de2cfcd7d477d3575efeb75c8f2"
                },
                {
                    "reference_url": "https://github.com/mbdavid/LiteDB/releases/tag/v5.0.13",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/mbdavid/LiteDB/releases/tag/v5.0.13"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-3x49-g6rc-c284",
                    "reference_id": "GHSA-3x49-g6rc-c284",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-3x49-g6rc-c284"
                },
                {
                    "reference_url": "https://github.com/mbdavid/LiteDB/security/advisories/GHSA-3x49-g6rc-c284",
                    "reference_id": "GHSA-3x49-g6rc-c284",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/mbdavid/LiteDB/security/advisories/GHSA-3x49-g6rc-c284"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/64057?format=api",
                    "purl": "pkg:nuget/LiteDB@5.0.13",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/LiteDB@5.0.13"
                }
            ],
            "aliases": [
                "CVE-2022-23535",
                "GHSA-3x49-g6rc-c284"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ty2n-gcpe-nye2"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/LiteDB@5.0.13"
}