PYSEC-2026-2056

Vulnerability from pysec - Published: 2026-07-07 14:34 - Updated: 2026-07-07 17:25
VLAI
Details

An issue in the getcolor function in utils.py of xhtml2pdf v0.2.13 allows attackers to cause a Regular expression Denial of Service (ReDOS) via supplying a crafted string.

Impacted products
Name purl
xhtml2pdf pkg:pypi/xhtml2pdf

{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "xhtml2pdf",
        "purl": "pkg:pypi/xhtml2pdf"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "0.2.16"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.0.0",
        "0.0.1",
        "0.0.2",
        "0.0.3",
        "0.0.4",
        "0.0.5",
        "0.0.6",
        "0.1a1",
        "0.1a2",
        "0.1a3",
        "0.1a4",
        "0.1b1",
        "0.1b2",
        "0.1b3",
        "0.2",
        "0.2.1",
        "0.2.10",
        "0.2.11",
        "0.2.12",
        "0.2.13",
        "0.2.14",
        "0.2.15",
        "0.2.16",
        "0.2.2",
        "0.2.3",
        "0.2.4",
        "0.2.5",
        "0.2.6",
        "0.2.7",
        "0.2.8",
        "0.2.9",
        "0.2b1"
      ]
    }
  ],
  "aliases": [
    "CVE-2024-25885",
    "GHSA-jj5c-hhrg-vv5h"
  ],
  "details": "An issue in the getcolor function in utils.py of xhtml2pdf v0.2.13 allows attackers to cause a Regular expression Denial of Service (ReDOS) via supplying a crafted string.",
  "id": "PYSEC-2026-2056",
  "modified": "2026-07-07T17:25:52.172079Z",
  "published": "2026-07-07T14:34:42.774289Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-25885"
    },
    {
      "type": "WEB",
      "url": "https://gist.github.com/salvatore-abello/c88dd0027496774023ef36c7b576d206"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/xhtml2pdf/xhtml2pdf"
    },
    {
      "type": "PACKAGE",
      "url": "https://pypi.org/project/xhtml2pdf"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-jj5c-hhrg-vv5h"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P",
      "type": "CVSS_V4"
    }
  ],
  "summary": "xhtml2pdf Denial of Service via crafted string"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…