Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/63652?format=api",
    "purl": "pkg:composer/cakephp/database@4.4.10",
    "type": "composer",
    "namespace": "cakephp",
    "name": "database",
    "version": "4.4.10",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "4.2.12",
    "latest_non_vulnerable_version": "4.4.10",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/44220?format=api",
            "vulnerability_id": "VCID-1fx6-mtxf-67an",
            "summary": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')\nCakePHP is a development framework for PHP web apps. In affected versions the `Cake\\Database\\Query::limit()` and `Cake\\Database\\Query::offset()` methods is vulnerable to SQL injection if passed un-sanitized user request data. This issue has been fixed in 4.2.12, 4.3.11, 4.4.10. Users are advised to upgrade. Users unable to upgrade may mitigate this issue by using CakePHP's Pagination library. Manually validating or casting parameters to these methods will also mitigate the issue.",
            "references": [
                {
                    "reference_url": "https://bakery.cakephp.org/2023/01/06/cakephp_4211_4311_4410_released.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bakery.cakephp.org/2023/01/06/cakephp_4211_4311_4410_released.html"
                },
                {
                    "reference_url": "https://github.com/cakephp/cakephp/commit/3f463e7084b5a15e67205ced3a622577cca7a239",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/cakephp/cakephp/commit/3f463e7084b5a15e67205ced3a622577cca7a239"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-22727",
                    "reference_id": "CVE-2023-22727",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-22727"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-6g8q-qfpv-57wp",
                    "reference_id": "GHSA-6g8q-qfpv-57wp",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-6g8q-qfpv-57wp"
                },
                {
                    "reference_url": "https://github.com/cakephp/cakephp/security/advisories/GHSA-6g8q-qfpv-57wp",
                    "reference_id": "GHSA-6g8q-qfpv-57wp",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/cakephp/cakephp/security/advisories/GHSA-6g8q-qfpv-57wp"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/63650?format=api",
                    "purl": "pkg:composer/cakephp/database@4.2.12",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/cakephp/database@4.2.12"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/63651?format=api",
                    "purl": "pkg:composer/cakephp/database@4.3.11",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/cakephp/database@4.3.11"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/63652?format=api",
                    "purl": "pkg:composer/cakephp/database@4.4.10",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/cakephp/database@4.4.10"
                }
            ],
            "aliases": [
                "CVE-2023-22727",
                "GHSA-6g8q-qfpv-57wp"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-1fx6-mtxf-67an"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/cakephp/database@4.4.10"
}