Potential Algorithm Confusion Attack in python-signxml Package

python-signxml Updated 14 Dec 2025

Summary

02/06/2025
N/A
No i
Medium
6.9

UBUNTU-CVE-2025-48994: SignXML is an implementation of the W3C XML Signature standard in Python. Affects python-signxml versions 4.0.2+dfsg-1 – 4.0.3+dfsg-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The python-signxml package is an implementation of the W3C XML Signature standard in Python, enabling users to sign and verify XML documents. It is widely used for secure data exchange in applications that require XML signatures. However, certain configurations can expose users to vulnerabilities, particularly when signature verification is not properly restricted.

Vulnerability Detail

The vulnerability arises when verifying signatures with X509 certificate validation turned off and an HMAC shared secret set. In versions prior to 4.0.4, the XMLVerifier can be exploited through an algorithm confusion attack. An attacker may provide a signature signed with a different asymmetric key algorithm, potentially compromising the integrity of the verification process. This occurs unless the user explicitly limits the expected signature algorithms, which can lead to unauthorized access or data manipulation.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can explicitly limit the expected signature algorithms by using the following code snippet when verifying signatures: 'signxml.XMLVerifier.verify(expect_config=...)'. This ensures that only the desired algorithms are accepted during the verification process.

Conclusion

The python-signxml package has a vulnerability that can be exploited through an algorithm confusion attack if not properly configured. Users are encouraged to update to version 4.0.4 or later to mitigate this risk. Implementing the provided workaround can also help secure applications until an update can be performed.

See every vulnerability recorded for python-signxml →

Share this vulnerability

FAQ

The main issue is a potential algorithm confusion attack when verifying signatures without proper restrictions, which can lead to security vulnerabilities.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

Versions prior to 4.0.4 of python-signxml are vulnerable to this issue.

If an immediate update is not possible, you should implement the workaround by restricting the expected signature algorithms during verification.

Vulert monitors and alerts for open-source vulnerabilities in software using a manifest file like package-lock.json, providing real-time insights without requiring code access.

Related vulnerabilities

Recent vulnerabilities recorded for python-signxml.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback