CVE-2017-11427: OneLogin PythonSAML XML Signature Wrapping Vulnerability

python-saml Updated 02 Oct 2025

Summary

17/04/2019
Yes i
High
7.7

CVE-2017-11427: OneLogin PythonSAML 2.3.0 and earlier may incorrectly utilize the results of XML DOM traversal and canonicalization APIs in such a way that an attacker may be able to manipulate the SAML data without invalidating the cry... Affects python-saml versions < 2.4.0. Fixed in 2.4.0. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

OneLogin PythonSAML is a Python library that provides SAML support for Python applications. It allows developers to implement SAML-based Single Sign-On (SSO) functionality in their applications. The library handles the creation and verification of SAML messages, including XML signatures. However, versions 2.3.0 and earlier of OneLogin PythonSAML may incorrectly utilize XML DOM traversal and canonicalization APIs, which can lead to an XML Signature Wrapping vulnerability. This vulnerability allows an attacker to manipulate SAML data without invalidating the cryptographic signature, potentially bypassing authentication to SAML service providers.

Vulnerability Detail

The XML Signature Wrapping vulnerability in OneLogin PythonSAML arises from the incorrect usage of XML DOM traversal and canonicalization APIs. By manipulating the SAML data, an attacker can modify the content of the SAML message without invalidating the cryptographic signature. This manipulation can lead to unauthorized access to SAML service providers, bypassing authentication mechanisms. The vulnerability affects versions 2.3.0 and earlier of the python-saml package available on PyPI.

How To Fix

Minimum fixed version

2.4.0

This is the first release that contains the fix.

pip install --upgrade "python-saml==2.4.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The XML Signature Wrapping vulnerability in OneLogin PythonSAML can potentially allow an attacker to bypass authentication to SAML service providers. It is crucial to upgrade to version 2.4.0 or later of the python-saml package to mitigate this vulnerability. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for python-saml →

Share this vulnerability

FAQ

The vulnerability allows an attacker to manipulate SAML data without invalidating the cryptographic signature, potentially bypassing authentication to SAML service providers.

Versions 2.3.0 and earlier of the python-saml package are affected.

To fix this vulnerability, upgrade to version 2.4.0 or later of the python-saml package.

No specific workarounds are mentioned for this vulnerability.

How To Fix

Minimum fixed version

2.4.0

This is the first release that contains the fix.

pip install --upgrade "python-saml==2.4.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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