Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/7028?format=api",
    "purl": "pkg:pypi/mako@0.3.4",
    "type": "pypi",
    "namespace": "",
    "name": "mako",
    "version": "0.3.4",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "1.3.11",
    "latest_non_vulnerable_version": "1.3.11",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/36187?format=api",
            "vulnerability_id": "VCID-7157-v8k4-gbbx",
            "summary": "Sqlalchemy mako before 1.2.2 is vulnerable to Regular expression Denial of Service when using the Lexer class to parse. This also affects babelplugin and linguaplugin.",
            "references": [
                {
                    "reference_url": "https://github.com/advisories/GHSA-v973-fxgf-6xhp",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-v973-fxgf-6xhp"
                },
                {
                    "reference_url": "https://github.com/sqlalchemy/mako/blob/c2f392e0be52dc67d1b9770ab8cce6a9c736d547/mako/ext/extract.py#L21",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/sqlalchemy/mako/blob/c2f392e0be52dc67d1b9770ab8cce6a9c736d547/mako/ext/extract.py#L21"
                },
                {
                    "reference_url": "https://github.com/sqlalchemy/mako/commit/925760291d6efec64fda6e9dd1fd9cfbd5be068c",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/sqlalchemy/mako/commit/925760291d6efec64fda6e9dd1fd9cfbd5be068c"
                },
                {
                    "reference_url": "https://github.com/sqlalchemy/mako/issues/366",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/sqlalchemy/mako/issues/366"
                },
                {
                    "reference_url": "https://pyup.io/vulnerabilities/CVE-2022-40023/50870/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://pyup.io/vulnerabilities/CVE-2022-40023/50870/"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/29185?format=api",
                    "purl": "pkg:pypi/mako@1.2.2",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-78vq-wbe5-aygj"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/mako@1.2.2"
                }
            ],
            "aliases": [
                "CVE-2022-40023",
                "GHSA-v973-fxgf-6xhp",
                "PYSEC-2022-260"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-7157-v8k4-gbbx"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/37299?format=api",
            "vulnerability_id": "VCID-78vq-wbe5-aygj",
            "summary": "Mako is a template library written in Python. Prior to 1.3.11, TemplateLookup.get_template() is vulnerable to path traversal when a URI starts with // (e.g., //../../../secret.txt). The root cause is an inconsistency between two slash-stripping implementations. Any file readable by the process can be returned as rendered template content when an application passes untrusted input directly to TemplateLookup.get_template(). This vulnerability is fixed in 1.3.11.",
            "references": [
                {
                    "reference_url": "https://github.com/sqlalchemy/mako/security/advisories/GHSA-v92g-xgxw-vvmm",
                    "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:H/I:N/A:N"
                        }
                    ],
                    "url": "https://github.com/sqlalchemy/mako/security/advisories/GHSA-v92g-xgxw-vvmm"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/49599?format=api",
                    "purl": "pkg:pypi/mako@1.3.11",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/mako@1.3.11"
                }
            ],
            "aliases": [
                "CVE-2026-41205",
                "GHSA-v92g-xgxw-vvmm",
                "PYSEC-2026-88"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-78vq-wbe5-aygj"
        }
    ],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/34696?format=api",
            "vulnerability_id": "VCID-kqgv-6uaw-wbg8",
            "summary": "Mako before 0.3.4 relies on the cgi.escape function in the Python standard library for cross-site scripting (XSS) protection, which makes it easier for remote attackers to conduct XSS attacks via vectors involving single-quote characters and a JavaScript onLoad event handler for a BODY element.",
            "references": [
                {
                    "reference_url": "http://bugs.python.org/issue9061",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://bugs.python.org/issue9061"
                },
                {
                    "reference_url": "http://lists.opensuse.org/opensuse-security-announce/2010-08/msg00001.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://lists.opensuse.org/opensuse-security-announce/2010-08/msg00001.html"
                },
                {
                    "reference_url": "http://secunia.com/advisories/39935",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://secunia.com/advisories/39935"
                },
                {
                    "reference_url": "http://www.makotemplates.org/CHANGES",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.makotemplates.org/CHANGES"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/7028?format=api",
                    "purl": "pkg:pypi/mako@0.3.4",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-7157-v8k4-gbbx"
                        },
                        {
                            "vulnerability": "VCID-78vq-wbe5-aygj"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/mako@0.3.4"
                }
            ],
            "aliases": [
                "CVE-2010-2480",
                "PYSEC-2010-1"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-kqgv-6uaw-wbg8"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/mako@0.3.4"
}