Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/35897?format=api",
    "vulnerability_id": "VCID-px54-yh8d-5bbc",
    "summary": "python-tuf is a Python reference implementation of The Update Framework (TUF). In both clients (`tuf/client` and `tuf/ngclient`), there is a path traversal vulnerability that in the worst case can overwrite files ending in `.json` anywhere on the client system on a call to `get_one_valid_targetinfo()`. It occurs because the rolename is used to form the filename, and may contain path traversal characters (ie `../../name.json`). The impact is mitigated by a few facts: It only affects implementations that allow arbitrary rolename selection for delegated targets metadata, The attack requires the ability to A) insert new metadata for the path-traversing role and B) get the role delegated by an existing targets metadata, The written file content is heavily restricted since it needs to be a valid, signed targets file. The file extension is always .json. A fix is available in version 0.19 or newer. There are no workarounds that do not require code changes. Clients can restrict the allowed character set for rolenames, or they can store metadata in files named in a way that is not vulnerable: neither of these approaches is possible without modifying python-tuf.",
    "aliases": [
        {
            "alias": "CVE-2021-41131"
        },
        {
            "alias": "GHSA-wjw6-2cqr-j4qr"
        },
        {
            "alias": "PYSEC-2021-376"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/24162?format=api",
            "purl": "pkg:pypi/tuf@0.19.0",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.19.0"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14808?format=api",
            "purl": "pkg:pypi/tuf@0.7.5",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6tgx-mpvy-63ab"
                },
                {
                    "vulnerability": "VCID-m2sw-ms1a-zkb5"
                },
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                },
                {
                    "vulnerability": "VCID-q9jt-smnw-s3h9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.7.5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14809?format=api",
            "purl": "pkg:pypi/tuf@0.9.8",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6tgx-mpvy-63ab"
                },
                {
                    "vulnerability": "VCID-m2sw-ms1a-zkb5"
                },
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                },
                {
                    "vulnerability": "VCID-q9jt-smnw-s3h9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.9.8"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14810?format=api",
            "purl": "pkg:pypi/tuf@0.9.9",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6tgx-mpvy-63ab"
                },
                {
                    "vulnerability": "VCID-m2sw-ms1a-zkb5"
                },
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                },
                {
                    "vulnerability": "VCID-q9jt-smnw-s3h9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.9.9"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14811?format=api",
            "purl": "pkg:pypi/tuf@0.10.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6tgx-mpvy-63ab"
                },
                {
                    "vulnerability": "VCID-m2sw-ms1a-zkb5"
                },
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                },
                {
                    "vulnerability": "VCID-q9jt-smnw-s3h9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.10.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14812?format=api",
            "purl": "pkg:pypi/tuf@0.10.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6tgx-mpvy-63ab"
                },
                {
                    "vulnerability": "VCID-m2sw-ms1a-zkb5"
                },
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                },
                {
                    "vulnerability": "VCID-q9jt-smnw-s3h9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.10.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14813?format=api",
            "purl": "pkg:pypi/tuf@0.10.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6tgx-mpvy-63ab"
                },
                {
                    "vulnerability": "VCID-m2sw-ms1a-zkb5"
                },
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                },
                {
                    "vulnerability": "VCID-q9jt-smnw-s3h9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.10.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14814?format=api",
            "purl": "pkg:pypi/tuf@0.11.dev0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6tgx-mpvy-63ab"
                },
                {
                    "vulnerability": "VCID-m2sw-ms1a-zkb5"
                },
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                },
                {
                    "vulnerability": "VCID-q9jt-smnw-s3h9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.11.dev0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14815?format=api",
            "purl": "pkg:pypi/tuf@0.11.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6tgx-mpvy-63ab"
                },
                {
                    "vulnerability": "VCID-m2sw-ms1a-zkb5"
                },
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                },
                {
                    "vulnerability": "VCID-q9jt-smnw-s3h9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.11.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14816?format=api",
            "purl": "pkg:pypi/tuf@0.11.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6tgx-mpvy-63ab"
                },
                {
                    "vulnerability": "VCID-m2sw-ms1a-zkb5"
                },
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                },
                {
                    "vulnerability": "VCID-q9jt-smnw-s3h9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.11.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14817?format=api",
            "purl": "pkg:pypi/tuf@0.11.2.dev1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6tgx-mpvy-63ab"
                },
                {
                    "vulnerability": "VCID-m2sw-ms1a-zkb5"
                },
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                },
                {
                    "vulnerability": "VCID-q9jt-smnw-s3h9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.11.2.dev1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14818?format=api",
            "purl": "pkg:pypi/tuf@0.11.2.dev2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6tgx-mpvy-63ab"
                },
                {
                    "vulnerability": "VCID-m2sw-ms1a-zkb5"
                },
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                },
                {
                    "vulnerability": "VCID-q9jt-smnw-s3h9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.11.2.dev2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14819?format=api",
            "purl": "pkg:pypi/tuf@0.11.2.dev3",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6tgx-mpvy-63ab"
                },
                {
                    "vulnerability": "VCID-m2sw-ms1a-zkb5"
                },
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                },
                {
                    "vulnerability": "VCID-q9jt-smnw-s3h9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.11.2.dev3"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14820?format=api",
            "purl": "pkg:pypi/tuf@0.12.dev0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6tgx-mpvy-63ab"
                },
                {
                    "vulnerability": "VCID-m2sw-ms1a-zkb5"
                },
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                },
                {
                    "vulnerability": "VCID-q9jt-smnw-s3h9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.12.dev0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14821?format=api",
            "purl": "pkg:pypi/tuf@0.12.dev1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6tgx-mpvy-63ab"
                },
                {
                    "vulnerability": "VCID-m2sw-ms1a-zkb5"
                },
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                },
                {
                    "vulnerability": "VCID-q9jt-smnw-s3h9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.12.dev1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14822?format=api",
            "purl": "pkg:pypi/tuf@0.12.dev2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6tgx-mpvy-63ab"
                },
                {
                    "vulnerability": "VCID-m2sw-ms1a-zkb5"
                },
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                },
                {
                    "vulnerability": "VCID-q9jt-smnw-s3h9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.12.dev2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14823?format=api",
            "purl": "pkg:pypi/tuf@0.12.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6tgx-mpvy-63ab"
                },
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                },
                {
                    "vulnerability": "VCID-q9jt-smnw-s3h9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.12.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14824?format=api",
            "purl": "pkg:pypi/tuf@0.12.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6tgx-mpvy-63ab"
                },
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                },
                {
                    "vulnerability": "VCID-q9jt-smnw-s3h9"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.12.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/14825?format=api",
            "purl": "pkg:pypi/tuf@0.12.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.12.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/24155?format=api",
            "purl": "pkg:pypi/tuf@0.13.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.13.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/24156?format=api",
            "purl": "pkg:pypi/tuf@0.14.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.14.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/24157?format=api",
            "purl": "pkg:pypi/tuf@0.15.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.15.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/24158?format=api",
            "purl": "pkg:pypi/tuf@0.16.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.16.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/24159?format=api",
            "purl": "pkg:pypi/tuf@0.17.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.17.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/24160?format=api",
            "purl": "pkg:pypi/tuf@0.18.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.18.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/24161?format=api",
            "purl": "pkg:pypi/tuf@0.18.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-px54-yh8d-5bbc"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/tuf@0.18.1"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/pypa/advisory-database/tree/main/vulns/tuf/PYSEC-2021-376.yaml",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/pypa/advisory-database/tree/main/vulns/tuf/PYSEC-2021-376.yaml"
        },
        {
            "reference_url": "https://github.com/theupdateframework/python-tuf",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/theupdateframework/python-tuf"
        },
        {
            "reference_url": "https://github.com/theupdateframework/python-tuf/commit/4ad7ae48fda594b640139c3b7eae21ed5155a102",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/theupdateframework/python-tuf/commit/4ad7ae48fda594b640139c3b7eae21ed5155a102"
        },
        {
            "reference_url": "https://github.com/theupdateframework/python-tuf/issues/1527",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/theupdateframework/python-tuf/issues/1527"
        },
        {
            "reference_url": "https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-wjw6-2cqr-j4qr",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-wjw6-2cqr-j4qr"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-41131",
            "reference_id": "CVE-2021-41131",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-41131"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-wjw6-2cqr-j4qr",
            "reference_id": "GHSA-wjw6-2cqr-j4qr",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-wjw6-2cqr-j4qr"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 22,
            "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')",
            "description": "The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory."
        },
        {
            "cwe_id": 937,
            "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."
        },
        {
            "cwe_id": 1035,
            "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."
        }
    ],
    "exploits": [],
    "severity_range_score": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-px54-yh8d-5bbc"
}