p PatchFirst

PatchFirst · Latest vulnerabilities

Python stack vulnerabilities · Page 53

Vulnerabilities published for Python in the last 30 days: 360. Listed in the KEV catalogue: 1.

Filter vulnerabilities
Python

Vulnerabilities: 7131

  1. CVE-2026-54574

    High · CVSS 8.2EPSS 0.21%Fix available

    `proot-distro install` has a Symlink Escape (Arbitrary Host File Write) via Malicious Tar Archive

    proot-distro is a utility for managing proot containers. Prior to version 5.1.5, proot-distro install extracted plain tarball root filesystems through _extract_plain_tar() in proot_distro/commands/install.py and Docker layers through _apply_layer() in proot_distro/helpers/docker.py without validating archive-controlled symlink targets in member.linkname, allowing a malicious archive to plant an absolute host-path symlink and write files through it onto the host filesystem. This issue is fixed in version 5.1.5.

    • Update to 5.1.5
    Published Updated
  2. GHSA-wchh-9x6h-7f6p

    Not ratedNo fix published

    olm dependency deprecation: CVE-2022-39255 and CVE-2024-45193

    ### Problem Multiple vulnerabilities were disclosed in 2024 affecting libolm (Olm): AES timing / side‑channel, Ed25519 signature malleability, and timing leaks in base64 decoding; several CVEs were assigned. Patches and mitigations were published; maintainers recommend upgrading to fixed versions. In addition, a 2022 “Olm/Megolm protocol confusion” advisory affecting some SDKs was critical and required client-side fixes. Use patched versions of libolm and up-to-date Matrix SDKs; avoid unpatched clients/servers. Olm is a dependency of `matrix-commander` (Python version, not Rust version). WARNING: Due to cryptographic [olm dependency depre

    Published Updated
  3. CVE-2026-50558

    Medium · CVSS 5.9EPSS 0.37%Fix available

    Penelope unsafe tar extraction allows arbitrary local file write via crafted session archive

    Penelope Shell Handler is a post-exploitation shell handler for authorized security testing. Prior to 0.20.0, the Unix download() implementation in penelope.py used tar.extractall(local_download_folder) on tar archives returned by remote sessions without validating member paths, allowing a malicious or compromised session to write files outside the intended download directory and potentially overwrite ~/.penelope/peneloperc. This issue is fixed in version 0.20.0.

    • Update to 0.20.0
    Published Updated
  4. CVE-2026-55389

    High · CVSS 7.5EPSS 0.55%Fix available

    datamodel-code-generator vulnerable to arbitrary local file read via JSON-Schema `$ref` (`file://` and `../` traversal), bypassing `--no-allow-remote-refs`

    datamodel-code-generator generates Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON, YAML, or CSV. Prior to 0.62.0, datamodel-code-generator resolves JSON Schema $ref targets in src/datamodel_code_generator/parser/jsonschema.py through is_url and _get_ref_body without containing file:// or ../ traversal references to the input directory and without honoring --no-allow-remote-refs, allowing arbitrary local file reads. This issue is fixed in version 0.62.0.

    • Update to 0.62.0
    Published Updated
  5. CVE-2026-54653

    High · CVSS 8.8EPSS 0.71%Fix available

    `datamodel-code-generator` vulnerable to code injection in via attacker-controlled `default_factory` schema field

    datamodel-code-generator generates Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON, YAML, or CSV. From 0.17.0 until 0.60.2, datamodel-code-generator preserves attacker-controlled default_factory values in src/datamodel_code_generator/parser/jsonschema.py through JsonSchemaObject.init and get_field_extras and emits them into Field(default_factory=...) or field(default_factory=...), allowing Python expression execution when the generated model is imported. This issue is fixed in version 0.60.2.

    • Update to 0.60.2
    Published Updated
  6. CVE-2026-55391

    High · CVSS 7.5EPSS 0.3%Fix available

    datamodel-code-generator vulnerable to SSRF protection bypass via DNS rebinding

    datamodel-code-generator generates Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON, YAML, or CSV. Prior to 0.63.0, datamodel-code-generator validates a URL host once in src/datamodel_code_generator/http.py through get_body, _validate_url_for_fetch, and _get_ips_from_host, but then lets httpx resolve the host again for the connection, allowing DNS rebinding to bypass allow_private_network=False and reach internal services. This issue is fixed in version 0.63.0.

    • Update to 0.63.0
    Published Updated
  7. CVE-2026-54656

    High · CVSS 7.8EPSS 0.25%Fix available

    `datamodel-code-generator` vulnerable to code execution on import via unescaped `validators` entries in --extra-template-data

    datamodel-code-generator generates Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON, YAML, or CSV. From 0.52.1 until 0.60.2, datamodel-code-generator interpolates validators from --extra-template-data in src/datamodel_code_generator/model/pydantic_v2/base_model.py through _process_validators into @field_validator decorators without safe validation, allowing Python code execution when the generated Pydantic v2 model is imported. This issue is fixed in version 0.60.2.

    • Update to 0.60.2
    Published Updated
  8. CVE-2026-54690

    High · CVSS 8.2EPSS 0.39%Fix available

    datamodel-code-generator vulnerable to SSRF via JSON-Schema `$ref` to HTTP URL (silent by default)

    datamodel-code-generator generates Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON, YAML, or CSV. From 0.9.1 until 0.61.0, datamodel-code-generator silently dereferences attacker-controlled JSON Schema $ref HTTP or HTTPS URLs in src/datamodel_code_generator/parser/jsonschema.py through _get_ref_body, and the --allow-remote-refs gate can warn instead of blocking, allowing server-side request forgery through src/datamodel_code_generator/http.py. This issue is fixed in version 0.61.0.

    • Update to 0.61.0
    Published Updated
  9. CVE-2026-55415

    High · CVSS 7.5EPSS 0.49%Fix available

    datamodel-code-generator vulnerable to code injection via `x-python-import` / `customTypePath` in generated import statements

    datamodel-code-generator generates Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON, YAML, or CSV. From 0.11.6 until 0.64.0, datamodel-code-generator allows attacker-controlled x-python-import or customTypePath schema extensions to reach src/datamodel_code_generator/parser/jsonschema.py and generated import handling through Import.from_full_path and Imports.create_line in src/datamodel_code_generator/imports.py, allowing a newline to break out of an import statement and execute Python code when the generated model is imported. This issue is fixed in version 0.64.0.

    • Update to 0.64.0
    Published Updated
  10. CVE-2026-54621

    High · CVSS 7.8EPSS 0.21%Fix available

    `datamodel-code-generator` vulnerable to code injection via unescaped carriage return in GraphQL Union description

    datamodel-code-generator generates Python data models from schema definitions. Prior to 0.60.1, GraphQL Union description values in src/datamodel_code_generator/model/template/UnionTypeStatement.jinja2 and src/datamodel_code_generator/model/template/UnionTypeStatement.py312.jinja2 are rendered into Python comments without neutralizing carriage returns in Python # comments, allowing attacker-controlled GraphQL schema content to inject Python code into generated models that runs when imported. This issue is fixed in version 0.60.1.

    • Update to 0.60.1
    Published Updated
  11. CVE-2026-54655

    High · CVSS 7.8EPSS 0.21%Fix available

    `datamodel-code-generator` vulnerable to code execution on import via `x-python-type` JSON-Schema extension in datamodel-code-generator

    datamodel-code-generator generates Python data models from schema definitions. From 0.51.0 until 0.60.2, x-python-type values parsed by src/datamodel_code_generator/parser/jsonschema.py in _get_python_type_override are inserted into generated field annotations without sufficient validation, allowing attacker-controlled JSON Schema content to execute Python code when the generated module is imported. This issue is fixed in version 0.60.2.

    • Update to 0.60.2
    Published Updated
  12. CVE-2026-55403

    Low · CVSS 3.7EPSS 0.34%Fix available

    datamodel-code-generator: Authorization / request headers leaked to cross-origin redirect target when fetching remote schemas

    datamodel-code-generator generates Python data models from schema definitions. Prior to 0.63.0, src/datamodel_code_generator/http.py get_body reuses Authorization, Cookie, and Proxy-Authorization headers when following cross-origin redirects while fetching remote schemas, allowing credentials scoped to one schema host to be leaked to another redirect target. This issue is fixed in version 0.63.0.

    • Update to 0.63.0
    Published Updated
  13. CVE-2026-54691

    High · CVSS 8.2EPSS 0.26%Fix available

    datamodel-code-generator vulnerable to SSRF via --url: no host/IP validation, follows redirects

    datamodel-code-generator generates Python data models from schema definitions. From 0.9.1 until 0.61.0, src/datamodel_code_generator/http.py http.get_body accepts --url targets and redirect chain targets without host/IP validation, allowing server-side request forgery against loopback, private, link-local, metadata, and other network-accessible resources. This issue is fixed in version 0.61.0.

    • Update to 0.61.0
    Published Updated
  14. CVE-2026-55390

    High · CVSS 7.5EPSS 0.55%Fix available

    Arbitrary local file read via XSD `schemaLocation` (`xs:include`/`xs:import`) path traversal, with no remote-ref gate

    datamodel-code-generator generates Python data models from schema definitions. From 0.59.0 until 0.62.0, XML Schema parsing in src/datamodel_code_generator/parser/xmlschema.py for --input-file-type xmlschema resolves xs:include, xs:import, xs:redefine, and xs:override schemaLocation values outside the input base path, allowing arbitrary local files to be read and reflected into generated models. This issue is fixed in version 0.62.0.

    • Update to 0.62.0
    Published Updated
  15. CVE-2026-54654

    High · CVSS 7.8EPSS 0.21%Fix available

    `datamodel-code-generator` vulnerable to code injection via unescaped carriage return in `--extra-template-data` `comment` field

    datamodel-code-generator generates Python data models from schema definitions. From 0.14.1 until 0.60.2, the --extra-template-data comment field is rendered into Python comments in src/datamodel_code_generator/model/template/TypeAliasAnnotation.jinja2, src/datamodel_code_generator/model/template/TypedDict.jinja2, src/datamodel_code_generator/model/template/dataclass.jinja2, src/datamodel_code_generator/model/template/msgspec.Struct.jinja2, src/datamodel_code_generator/model/template/pydantic/BaseModel.jinja2, and src/datamodel_code_generator/model/template/pydantic_v2/BaseModel.jinja2 without neutralizing carriage returns in Python # comments

    • Update to 0.60.2
    Published Updated
  16. CVE-2026-48060

    High · CVSS 8.1EPSS 0.35%Fix available

    Litestar: HTML Injection Through CSRF Token

    Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to version 2.20.0, Litestar instances which use a template engine in conjunction with CSRF protection are vulnerable to HTML Injection which can be escalated to Cross Site Scripting due to the contents of the CSRF cookie being excluded from automatic escaping by the template engine when configured inline with documentation recommendations. This issue has been patched in version 2.20.0.

    • Update to 2.22.0
    Published Updated
  17. CVE-2026-54635

    High · CVSS 7.5EPSS 0.51%Fix available

    pytonapi has a Webhook Custom Path Authentication Bypass

    pytonapi is a Python SDK for TONAPI that provides REST API, streaming, and webhook access to the TON blockchain. From 2.0.0 to 2.2.0, TonapiWebhookDispatcher fails to validate the Authorization header when a webhook handler is registered with the documented path argument, because setup() stores bearer tokens only under the default suffix paths and never adds the custom path to the token map, so self._tokens.get(path) returns None and the authentication guard is skipped. An unauthenticated remote attacker can POST forged payloads to the custom webhook endpoint and trigger victim-defined handlers. This issue is fixed in version 2.2.1.

    • Update to 2.2.1
    Published Updated
  18. CVE-2026-54609

    High · CVSS 8.6EPSS 0.46%No fix published

    QTINeon has unauthenticated relay-to-host amplification via unbounded RECONNECT_REQUEST forwarding

    QTI Neon is a minimal, game-agnostic, relay-based UDP multiplayer protocol library. In version 1.0.0, the relay's handleReconnectRequest forwards RECONNECT_REQUEST packets to the host without bounding them, so an unauthenticated client can drive relay-to-host amplification and cause a denial of service on the host. No fixed version is available as of this review.

    Published Updated
  19. CVE-2026-6879

    Low · CVSS 2EPSS 0.36%Fix available

    Quadratic Behavior in xml.etree.ElementPath Index Predicates

    `Element.findall()` and fully-consumed `Element.iterfind()` exhibit `O(n^2)` time complexity when using XPath index predicates (e.g. `[1]`, `[last()]`, `[last()-N]`) on XML documents with many same-tag siblings. `Element.find()` is only affected when the first match is near the end  of the sibling list, such as with `[last()]` or `[last()-N]`;  `.//item[1]` short-circuits after the first match.

    • Update to 3.10.21
    • Update to 3.11.16
    • Update to 3.12.14
    • Update to 3.13.15
    • Update to 3.13.15-1
    • Update to 3.13.5-2+deb13u5
    • Update to 3.14.7
    • Update to 3.14.7-1
    • Update to 3.15.0rc1
    • Update to 8.0.0+dfsg-1
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →