Abstract
Why have SAML service providers been broken in the same few ways since 2012, and which of those failures belong to SAML and which to XML Signature? In the cases examined here the signature algorithms held; the breaks were in what was checked and what was then read. An XML Signature authenticates a SignedInfo element and the transformed output of its references under a key. The service provider must also make sure that the assertion it acts on is the covered content, that the key is trusted for that issuer, and that the profile’s conditions hold. Signature wrapping, comment truncation, parser differentials and round-trip instability open a gap between the verified content and the consumed content. Signature exclusion is a missing coverage check, and trusting a key carried in the message is misplaced trust. Audience, recipient, replay, binding and identity-mapping failures belong to the SAML profile and to application code, and the general categories have counterparts in OpenID Connect. Shibboleth’s 30 November 2026 advisory adds forged messages at a default-enabled endpoint. Owners should consume only verified content, verify issuers through configured keys or trust anchors, check every condition, disable unused endpoints and track their SAML libraries.
How a SAML login is built and checked
SAML 2.0 was published as an OASIS Standard on 15 March 2005 in several documents. The ones that matter here are the core specification (assertions, protocols and the signature profile), the profiles (who sends which message, and what the receiver must check) and the bindings (how messages travel over HTTP).123 The OASIS approved errata, last consolidated as Errata 05 on 1 May 2012, change some of the profile wording that matters below.4 The library’s CISSP Domain 5 article walks through the service-provider-initiated login step by step. The summary below concentrates on the parts that attacks exploit.
The Web Browser SSO profile in outline
A service provider (SP) that wants a user authenticated sends an <AuthnRequest> with a unique ID to an identity provider (IdP), usually through the user’s browser. The IdP authenticates the user and returns a <Response> holding one or more <Assertion> elements. As amended by erratum E26, the profile calls an assertion with at least one bearer <SubjectConfirmation> a bearer assertion, and requires the set of bearer assertions to contain at least one <AuthnStatement>. At least one bearer confirmation must carry a <SubjectConfirmationData> element with a Recipient attribute naming the SP’s assertion consumer service URL and a NotOnOrAfter attribute limiting the window in which the relying party can confirm the assertion. That element must not carry a NotBefore attribute, and when the message answers a request, its InResponseTo must match the request’s ID. Each bearer assertion must also carry an <AudienceRestriction> naming the SP’s unique identifier.42 Separately, core gives the <Response> element its own InResponseTo: it must be present and match the request’s ID when the response answers a request, and absent otherwise.1
Section 4.1.4.3 of the profiles, as amended by erratum E26, lists the receiving rules. The SP verifies any signatures on the assertions or the response. It checks the bearer Recipient against the assertion consumer service URL to which the message was delivered, and checks that the bearer NotOnOrAfter has not passed, allowing for clock skew. It checks the bearer InResponseTo against the ID of its own <AuthnRequest>, alongside the InResponseTo on the <Response> itself that core requires for solicited responses. For an unsolicited response both must be absent. Finally the SP must “Verify that any assertions relied upon are valid in other respects”, and E26 adds that each assertion, if more than one is present, “MUST be evaluated independently”.24 “Valid in other respects” includes the assertion’s <Conditions>. Core defines its own NotBefore and NotOnOrAfter window there, distinct from the bearer confirmation window, together with audience restrictions and any other condition. An assertion with a condition the SP does not understand cannot be treated as valid.1
Two POST-specific rules follow. The original 2005 text said that “the enclosed assertion(s) MUST be signed”. Erratum E26 replaced it: “each assertion MUST be protected by a digital signature. This can be accomplished by signing each individual <Assertion> element or by signing the <Response> element.”4 The SP must also prevent replay by keeping the set of used assertion IDs “for the length of time for which the assertion would be considered valid based on the NotOnOrAfter attribute in the <SubjectConfirmationData>”.2
Two more values sit outside the assertion. Destination is an attribute of the <Response>. Core says that when it is present, “the actual recipient MUST check that the URI reference identifies the location at which the message was received”. The Redirect and POST bindings make it mandatory when the message is signed, and the value is the URL to which the sender told the browser to deliver it.13 RelayState is a separate form or query parameter, typically the SP’s state such as the page the user wanted. In an unsolicited flow an IdP may supply it under prior agreement with the SP.2 The bindings cap it at 80 bytes and say it “SHOULD be integrity protected by the entity creating the message”. With the Redirect binding, the detached query-string signature covers RelayState when it is present. With the POST binding, an XML signature inside the message cannot cover a parameter that sits outside the message.3
Response signatures, assertion signatures and inheritance
An IdP can sign the assertion, the response, or both. Core section 5.3 allows “inherited” signatures: an unsigned assertion inside a signed response “can be considered to inherit the signature from the enclosing element”.1 An SP that insists on a signature directly on each assertion is applying a stricter local policy than the amended profile requires. Shibboleth offers that policy as the requireSignedAssertions option, which is off by default and which its documentation describes as “Typically needed only for advanced auditing or assertion forwarding use cases”.5 Either way, the verifier must establish which element a signature covers, and the application must read only from covered content. OWASP’s SAML Security Cheat Sheet puts this as verifying that the reference “resolves to the signed Assertion or Response, and that the exact assertion used for authentication is protected by that validated signature.”6
XML Signature in the shape SAML uses
References, transforms and canonicalisation
XML Signature, now the W3C’s version 1.1 Recommendation of 11 April 2013, signs a <SignedInfo> element rather than the data itself. <SignedInfo> holds one or more <Reference> elements. Each names some data by URI, lists transforms to apply to it, and gives the digest of the result. Core validation has two required steps: “reference validation”, recomputing each digest, and signature validation over the canonicalised <SignedInfo>.7 So a signature is two links, key to SignedInfo and SignedInfo to the transformed referenced data through a digest, and each link is checked separately.
SAML narrows the options. Core requires XML signatures on SAML assertions and messages to be enveloped, which means the <ds:Signature> element sits inside the element it signs. Each signature “MUST contain a single <ds:Reference>“ pointing by same-document reference to the ID attribute of the signed element’s root, so an assertion with ID="foo" is referenced as URI="#foo".1 Implementations “SHOULD use Exclusive Canonicalization”, the W3C algorithm of 18 July 2002. It is designed to let a signed subtree be verified outside its original context. Its specification lists limits, though. Namespace declarations that the subtree visibly uses, or that are named in an InclusiveNamespaces prefix list, are carried along, while attributes such as xml:lang on ancestor elements are not imported and must be declared within the signed subtree.18 Signatures “SHOULD NOT contain transforms other than” the enveloped-signature transform and exclusive canonicalisation. A verifier that accepts other transforms “MUST ensure that no content of the SAML message is excluded from the signature”.1
Comments need care, because two separate steps decide whether they count. The algorithm named in <ds:CanonicalizationMethod> governs how <SignedInfo> itself is serialised. For the referenced data, XML Signature 1.1 section 4.4.3.3 says that when the URI is a bare ID fragment such as #foo, dereferencing must “delete all comment nodes”. A scheme-based XPointer such as #xpointer(id('foo')) can retain them at that step, and the specification gives #xpointer(/) for the whole document.7 Whether retained comments then reach the digest depends on the transforms: exclusive canonicalisation has a #WithComments variant, but it can only keep comments still present in its input.8 Under SAML’s usual URI="#id" form, an inserted comment therefore changes nothing that is digested.
Two facts that are easy to merge
The enveloped-signature transform removes the signature from the content before hashing. The reference identifies the signed element by an ID value, not by its position. How a verifier resolves that ID is left to the implementation: by attributes declared as IDs in a schema, by attribute names registered with the parser, or, in several vulnerable libraries, by searching the document. XML Signature splits the check into reference validation, which recomputes each digest, and signature validation over SignedInfo; together they make up core validation.7 Core validation therefore establishes that the data the reference resolved to, after its transforms, hashed to a value in a SignedInfo that the key signed. It does not establish that the element the application later fetches as “the assertion” is that data, or that the element sits where the profile expects it. The W3C specification addresses this under the heading “’See’ What is Signed”: anything relying on a valid signature “should operate over the data that was transformed (including canonicalization) and signed, not the original pre-transformed data”.7
“The signature is valid” and “the element my application reads is the covered one” are therefore separate facts, established by separate code. The application also has to check facts that no signature supplies: that the covered element is an Assertion in an allowed position, from the expected issuer, carrying the claims it uses. Many of the bypasses described below, from the 2012 study onwards, came from treating the first fact as proof of the rest.
KeyInfo and trust
A <ds:KeyInfo> element can carry a key or a certificate with the signature. The W3C specification is explicit that “questions of trust of such key information (e.g., its authenticity or strength) are out of scope of this specification and left to the application.”7 SAML core adds no restriction: KeyInfo “MAY be absent”.1 Trust has to come from somewhere else, and what a received KeyInfo may contribute depends on the trust model. Shibboleth’s documentation shows two. Its ExplicitKey engine takes the keys to trust directly from the peer’s metadata, so message KeyInfo can at most help select one of them. Its PKIX and StaticPKIX engines take certificate names from the peer’s metadata and apply path validation to candidate certificates against trust anchors, so a certificate carried in the message can be accepted, but only if it passes that independent path and name policy.9 A verifier that validates a signature with whatever certificate arrives in the message has proved only that the sender holds the matching private key.
Signature wrapping
Origins
XML Signature wrapping (XSW) was first described for SOAP web services. Michael McIntosh and Paula Austel of IBM, both named in the contributor list of the SAML 2.0 core specification, published “XML signature element wrapping attacks and countermeasures” as a CCS 2005 workshop paper.110 In the account of Somorovsky and colleagues, that paper and work by Bhargavan, Fournet and Gordon first described XSW. McIntosh and Austel proposed receiver-side policies, but in the 2012 authors’ assessment “have however not given a definitive solution for this problem.”11
On Breaking SAML, 2012
The paper that brought wrapping to single sign-on is “On Breaking SAML: Be Whoever You Want to Be” by Juraj Somorovsky, Andreas Mayer, Jörg Schwenk, Marco Kampmann and Meiko Jensen, presented at the 21st USENIX Security Symposium in August 2012. The authors examined “14 major SAML frameworks and show that 11 of them, including Salesforce, Shibboleth, and IBM XS40, have critical XML Signature wrapping (XSW) vulnerabilities.”12 They also found three of the 14 open to signature exclusion. Two, Microsoft SharePoint 2010 and SimpleSAMLphp, resisted every test case.11
The adversary in the paper is weak and does not need to control the network. One version registers as an ordinary user at the IdP and receives a validly signed assertion about itself; the other picks up assertions from caches, logs or unprotected traffic, even after they have expired. The authors write: “A single signed SAML assertion is sufficient to completely compromise a SAML issuer/Identity Provider.” TLS does not help, because the attacker can use its own assertion.11
Three findings in the paper still shape SP failures.
- Any signed content will do if the verifier does not care what was signed. In the authors’ words, the OneLogin toolkit “did not care about what data was actually signed”. They used the IdP’s signed metadata, which they note is typically signed by the issuer and publicly available, as the signed element and attached a self-made response.11
- Countermeasures that check IDs are not enough on their own. OpenSAML compared the ID used in signature validation with the ID of the processed assertion, and used Xerces schema validation to reject duplicate IDs. The authors found that content of elements declared as
<xsd:any processContents="lax">was not schema-checked, so duplicate IDs could be hidden there, for example in the response’s<Extensions>element. The Xerces implementations then resolved duplicates differently: for C++ the security library “detected only the first”, and for Java the last. The signature module validated the hidden original while the application read the attacker’s assertion.11 - Point fixes invite new variants. Salesforce first responded by accepting only messages containing one
Assertionelement. The authors’ automated tool then found a new wrapping variant against the patched interface. They also noted that the one-assertion rule is not standard-conformant, since a response may contain several assertions.11
The paper’s formal model splits the relying party into a signature module and a claims module and asks what passes between them. “In practice, RPsig only returns a Boolean value, and the whole document D is forwarded to RPclaims.”11 That Boolean is the root of the problem. The first countermeasure, which the paper labels “Only-process-what-is-hashed”, forwards to the claims logic only the parts of the document that were input to a digest. The practical version, “see-what-is-signed”, removes unsigned elements that contain no signed descendants, together with all unsigned text. The second marks the signed elements so that later modules can tell them apart.11
The authors also explain why SimpleSAMLphp’s approach did not simply settle the matter. It does signature validation and assertion evaluation in one framework, over one parsed tree, so it can reach the same elements in both steps. Where those steps sit in different modules or systems, such as a DOM signature library followed by a streaming parser, or an XML security gateway in front of an application, the claims code “has no explicit information about the position of the signed element”. Coverage then has to be conveyed in a trustworthy way. Marking signed elements with new attributes would fail SAML schema validation, so the authors suggest processing instructions as a carrier instead.11 The paper also reports earlier work by Jensen and colleagues finding that hardened XML schemas without extension points can fend off wrapping, at the cost of a carefully built schema for each application and “severe performance penalties”.11 Blanket rejection of every response with more than one assertion is the Salesforce rule again: it breaks conforming IdPs and, as the paper showed, did not hold on its own.
A worked example
The schematic below is simplified and not valid SAML. The attacker holds one genuine response for their own account, mallory@example.org, with a signed assertion A1, and builds a new response around it.
<samlp:Response ID="R9" Destination="https://sp.example.org/acs">
<saml:Issuer>https://idp.example.org</saml:Issuer>
<samlp:Extensions>
<!-- wrapper: the original, byte-for-byte, still validly signed -->
<saml:Assertion ID="A1">
<ds:Signature>
<ds:SignedInfo>
<ds:Reference URI="#A1"> ... <ds:DigestValue>k3Q...</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>Mz8...</ds:SignatureValue>
</ds:Signature>
<saml:Subject><saml:NameID>mallory@example.org</saml:NameID></saml:Subject>
</saml:Assertion>
</samlp:Extensions>
<!-- where the application reads: attacker-written, unsigned -->
<saml:Assertion ID="A2">
<saml:Subject><saml:NameID>admin@example.org</saml:NameID></saml:Subject>
<saml:Conditions NotOnOrAfter="2026-12-02T10:05:00Z"> ... </saml:Conditions>
</saml:Assertion>
</samlp:Response>Consider a vulnerable verifier that resolves #A1 by searching the document, accepts an assertion in any position, and returns only “valid”. It finds the original inside <Extensions> and, provided that the moved assertion canonicalises to the same bytes as before (which exclusive canonicalisation is designed to allow), recomputes the same digest and checks the signature with the IdP’s real key. The application then asks for the response’s assertion child with an expression such as /Response/Assertion[1] and gets A2, which nobody signed. Every check the application runs on A2, including audience, recipient and time window, can pass because the attacker wrote those values. A verifier that returned the covered content to the application, or that required the covered assertion to be the one in the expected position, would stop this message.
The same bug, twelve years on
Wrapping did not end in 2012. The advisories below are examples, not a census; the source for each date and detail is cited with it.
- passport-saml, 2022. CVE-2022-39299 is titled by its advisory “Signature bypass via multiple root elements”. The GitHub advisory was published on 11 October 2022 and the CVE record on 12 October. It let a remote attacker bypass SAML authentication in the Node.js passport-saml library before 3.2.2. The advisory says a successful attack “requires that the attacker is in possession of an arbitrary IDP signed XML element”, and that depending on the IdP, fully unauthenticated attacks “might also be feasible”. It credits Felix Wilhelm of Google Project Zero.1314
- GitHub Enterprise Server, 2024. In CVE-2024-6800 (NVD, 20 August 2024), “an XML signature wrapping vulnerability” affected instances using “specific identity providers utilizing publicly exposed signed federation metadata XML”. An attacker “with direct network access” could forge a response giving site administrator access.1516 CVE-2024-9487 (NVD, 10 October 2024) was a separate signature-verification bypass. It required the optional encrypted-assertions feature, direct network access, and “a signed SAML response or metadata document”. GitHub’s release notes describe it as a regression introduced during follow-up remediation of CVE-2024-4985.1718 Publicly exposed signed metadata is a stated condition only for the affected CVE-2024-6800 configurations; CVE-2024-9487 required a signed response or metadata document, public or not.
- ruby-saml, 2024. CVE-2024-45409 (NVD, 10 September 2024)19 carries the maintainer’s title “SAML authentication bypass via Incorrect XPath selector”. The advisory says ruby-saml up to 1.12.2 and 1.13.0 to 1.16.0 “does not properly verify the signature of the SAML Response”, so that an unauthenticated attacker “with access to any signed saml document (by the IdP) can thus forge a SAML Response/Assertion with arbitrary contents”. It scores 10.0 under CVSS 3.1 and credits ahacker1 of SecureSAML; the fixes were 1.17.0 and 1.12.3.20 GitLab, which uses the library, released fixes on 17 September 2024. For self-managed instances that could not update, its compensating guidance was to enable GitLab two-factor authentication for all accounts and to disallow the SAML two-factor bypass option. It noted that multi-factor authentication at the IdP “does not mitigate this vulnerability”.21
- Keycloak, 2024. CVE-2024-8698 (NVD, 19 September 2024) concerns a method in Keycloak’s
XMLSignatureUtilthat decided “whether a SAML signature is for the full document or only for specific assertions based on the position of the signature in the XML document, rather than the Reference element used to specify the signed element”.22 It is the same kind of confusion as the worked example, this time inside an IdP and identity broker. - samlify, 2025. CVE-2025-47949 (NVD, 19 May 2025)23, titled “SAML Signature Wrapping attack”, affected the samlify Node.js library before 2.10.0. It allowed an attacker holding “a signed XML document by the identity provider” to “forge a SAML Response to authenticate as any user”. The GitHub advisory rates it 9.9 under CVSS 4.0.24
Canonicalisation and text extraction
Comment truncation, February 2018
On 27 February 2018 Kelby Ludwig of Duo Labs published a class of flaw that needs no wrapping.25 Because comments are dropped before the referenced data is digested, a comment added inside signed text leaves the signature valid. Some XML APIs, asked for an element’s text, return only the first text node. Ludwig’s example is <NameID>klud<!-- a comment? -->wig</NameID>. Python lxml’s .text gives klud, Ruby REXML’s get_text behaves similarly, and Python’s standard xml.etree.ElementTree returns the full string.25 An attacker who can register user@user.com.evil.com at the IdP edits their own signed assertion so that it reads user@user.com<!---->.evil.com. The signature still verifies, and a vulnerable SP reads user@user.com.25
CERT/CC’s Vulnerability Note VU#475445, published the same day, groups several vendors’ issues under one description: SAML libraries that “may incorrectly utilize the results of XML DOM traversal and canonicalization APIs”. It lists CVE-2017-11427 (OneLogin python-saml), CVE-2017-11428 (OneLogin ruby-saml), CVE-2017-11429 (Clever saml2-js), CVE-2017-11430 (OmniAuth-SAML), CVE-2018-0489 (Shibboleth openSAML C++) and CVE-2018-5387 (Wizkunde SAMLBase).26 For the Shibboleth mechanism, the vendor’s own advisory is the better guide (see below). Duo’s Network Gateway was affected under CVE-2018-7340 and fixed in version 1.2.10.27 NVD did not publish the 2017 identifiers until 17 April 2019.28
Ludwig also set out the limits. SPs that use email addresses “and validate their domain against a whitelist are much less likely to be exploitable”, and open self-registration at the IdP raises the impact.25 He suggested a comment-preserving canonicalisation as a possible further step, with the caveat that “the canonicalization algorithm identifier itself must not be subject to tampering”.25 Under XML Signature 1.1’s rules for bare ID references, as described above, comments are removed before any transform runs, so changing the canonicalisation algorithm alone would not bring them back for a SAML-style #id reference.7 The direct controls are a patched library and code that extracts the full text of the covered element.
The fault lies partly in XML, where the digested form leaves out content that the parsed tree keeps, and partly in application code that reads text through an API returning only part of it. The pattern matches wrapping: what was hashed and what the application acted on were different things.
Comments in the signature itself, 2025
The xml-crypto library for Node.js received two critical advisories on 14 March 2025. CVE-2025-29774, “XML Signature Verification Bypass via Multiple SignedInfo References”, concerns a second <SignedInfo> placed inside a <Signature>; its indicator of compromise is that “There should not be more than one SignedInfo node inside a Signature.”29 CVE-2025-29775, “XML Signature Verification Bypass via DigestValue Comment”, concerns a comment inside <DigestValue>; its indicator of compromise is any comment inside a DigestValue.30 Both advisories say an attacker could “modify a valid signed XML message in a way that still passes signature verification checks”. Fixes are in 6.0.1, 3.2.1 and 2.1.6.2930 In both, the confusion sits inside the signature structure rather than around the signed assertion.
When the parser lies
DTDs and other constructs, Shibboleth 2018
On 12 January 2018 the Shibboleth project reported that its SP, which “relies on a generic XML parser to process SAML responses”, could not fully disable Document Type Definition processing with the parser versions on some platforms. “Through addition/manipulation of a DTD, it’s possible to make changes to an XML document that do not break a digital signature but are mishandled by the SP”, leading to impersonation. The fix was XMLTooling-C 1.6.3 (CVE-2018-0486), credited to RedTeam Pentesting.31
The second advisory, on 27 February 2018, was a different case. It covered flaws involving “other XML constructs rather than entity references”, with the same effect on signed data, fixed in XMLTooling-C 1.6.4 (CVE-2018-0489). These bugs were “NOT prevented by any existing Xerces-C parser version on any platform” and could not be addressed “by any means other than the updated XMLTooling-C library”.32 Refusing DTDs would have blocked the January vector, but only the patch addressed the February one. This is the Shibboleth entry in CERT’s comment-truncation note.26
DTDs also carry the older external-entity threat, which is about reading files or making requests rather than about signed data. In FusionAuth’s SAML library, CVE-2021-27736 allowed XML external entity (XXE) attacks “via a forged AuthnRequest or LogoutRequest because parseFromBytes uses javax.xml.parsers.DocumentBuilderFactory unsafely”.33 A SAML endpoint parses attacker-supplied XML before anyone has authenticated, so parser features are exposed through every enabled, reachable endpoint. Parser hardening is defence in depth. It does not replace patching the signed-data flaws.
Round-trip instability, Go 2020
On 14 December 2020 Mattermost’s Juho Forsén disclosed three flaws in Go’s standard encoding/xml package: CVE-2020-29509 (attribute namespace prefixes), CVE-2020-29510 (directives) and CVE-2020-29511 (element namespace prefixes).34 The core issue is that “maliciously crafted XML markup mutates during round-trips through Go’s decoder and encoder implementations”. The attribute advisory gives the SAML consequence: an affected implementation “can interpret a SAML Assertion as signed, but then proceed to read values from an unsigned part of the same document due to namespace mutations between signature verification and data access.”35 Mattermost found the first issue on 28 August 2020 in a beta SAML implementation, disabled it, and says it has “no evidence of this issue being ever exploited”. The post reports that the Go security team “has determined that the root causes of the vulnerabilities cannot be reliably addressed”. Mattermost released a validator, xml-roundtrip-validator, to reject unstable markup.34 The general lesson is narrower than “never re-serialise”. A design is exposed when serialisation changes the meaning between the view that was verified and the view that is consumed, and Go’s encoder was shown to do that.
Two parsers in one verifier, ruby-saml 2025
On 12 March 2025 GitHub’s Peter Stöckli published “Sign in as anyone”, describing CVE-2025-25291 and CVE-2025-25292 in ruby-saml.36 GitHub had been evaluating ruby-saml for its own use after CVE-2024-45409 and ran a private bug bounty on it. Both Stöckli and the bounty participant ahacker1 noticed that “ruby-saml was using two different XML parsers during the code path of signature verification”: REXML, written in pure Ruby, and Nokogiri, a wrapper around libxml2 and other libraries.36 The maintainer’s two advisories name the triggers at a high level, “DOCTYPE handling” for CVE-2025-25291 and “namespace handling” for CVE-2025-25292. Both list affected versions as up to 1.12.3 and from 1.13.0 to below 1.18.0.3738
The post traces the verification method. The SignatureValue and the DigestValue were read with REXML. The SignedInfo that was canonicalised and checked against the signature, and the referenced element that was hashed, were read with Nokogiri. When the two parsers can be made to see different Signature elements, “A valid SignedInfo with DigestValue is verified against a valid signature” and “A fabricated canonicalized assertion is compared against its calculated digest”, and both checks pass.36 The raw material is “a single valid signature that was created with the key used to validate SAML responses or assertions”. That signature can come from another user’s assertion or, “in certain cases”, from signed IdP metadata.36 GitLab shipped fixes the same day in 17.7.7, 17.8.5 and 17.9.2.39
The March patch releases were 1.18.0 and, for the older branch, 1.12.4. On 8 December 2025 the maintainer published CVE-2025-66567: the 1.12.4 backport was “an incomplete fix for CVE-2025-25292”, and 1.18.0 is not affected.40 Version numbers in historical advisories are a record of what was fixed then. The current maintainer advisories, not this article, are the guide to a safe version today.
Stöckli’s diagnosis applies beyond Ruby. The “more fundamental issue was the disconnect between verification of the hash and verification of the signature”. Had the library taken the digest from the SignedInfo it had already verified, “it would have been secure in this case even with two XML parsers in use”.36 He found no reliable indicators of compromise and suggested looking for SAML logins from unexpected locations.36
Signature exclusion and key confusion
The two remaining classes in the 2012 paper are simpler and still turn up. In signature exclusion, the security logic “checks the signature validity only if the signature is included. If the security logic does not find the Signature element, it simply skips the validation step.” Three of the 14 frameworks failed this way.11 On the POST binding the amended profile requires every assertion to be protected by a signature on itself or on the enclosing response, so accepting an unprotected assertion there breaks a MUST.4 This is a missing coverage check, not an XML parsing fault.
Key confusion is misplaced trust. It is the XML counterpart of a JSON Web Token that carries its own key in a jwk header. The paper’s list of lessons includes “Untrusted signatures: It is essential to check that the signature was created with a trustworthy key. Otherwise, the attacker can forge a signature with any arbitrary key and embed the corresponding certificate in the KeyInfo element.”11 OWASP’s guidance is to obtain IdP keys “directly from the identity provider, store it in a local file and ignore any KeyInfo elements in the document”.6 SAML Raider, a Burp Suite extension, includes this test. It can clone a certificate, so that names and issuer look right, and re-sign a message (“signature spoofing attack”); it can also remove signatures (“signature exclusion attack”).41 A cloned certificate carries a different public key. A verifier that compares keys against configuration rejects it. A PKIX-style verifier rejects it as long as the clone fails path validation to the independently configured anchors or the name policy taken from metadata.9
After verification: mapping the identity
A correctly verified assertion still has to be mapped to a local account. On 26 November 2026 Red Hat published CVE-2026-137435 for Keycloak’s SAML identity brokering. “When Keycloak is configured to use a database with case-insensitive collation, it may incorrectly match a SAML subject name to an existing user account if the names differ only by case.” An attacker supplying “a case-distinct version of a victim’s username in a signed SAML assertion” could therefore log in as the victim.42 Red Hat rates it Moderate, because exploitation depends on that database configuration, and classifies it as CWE-178, improper handling of case sensitivity. It gives the root cause as a case-insensitive database lookup of federated identities “without a subsequent case-sensitive verification in the application logic”. It lists no mitigation that meets its criteria.43
Here the assertion was parsed and verified correctly; the fault was a database equality test broader than the identifier’s own rules. That separates it from comment truncation, where the SP extracted the wrong string from a correctly signed one. A general rule, which goes beyond Red Hat’s advisory and is offered here as design guidance, is to match an authoritative identifier from the trusted issuer, within that issuer’s namespace and under the comparison rules both sides agreed. Ludwig’s observations about domain allowlists and open registration at the IdP concern the same boundary.25
Binding confusion: the Shibboleth advisory of 30 November 2026
What the advisory says
On 30 November 2026 the Shibboleth project issued a Service Provider security advisory for “a critical message processing vulnerability that allows an unauthenticated attacker to forge sessions containing any information desired, defeating any access control measures in place.”44 The advisory’s section is headed “ECP and SOAP message processing vulnerable to request forgery”. It says that OpenSAML message processing and security features were combined by the SP in a way that left it open to forged assertions accepted for creating sessions. “Under the right conditions,” such forged messages can appear to come from any trusted IdP and carry any data the attacker chooses.44
The advisory places the session-creation attack vector at the SAML 2 Enhanced Client/Proxy (ECP) endpoint, “which is enabled by default”. The SOAP endpoints have a similar bug. They are not used to create sessions, so the advisory rates that exposure as much less valuable, typically allowing forged logout requests, but it remains part of the flaw.44 The remedy is version 3.3.2 of the OpenSAML C++ library, also shipped in Service Provider 3.6.1 on Windows. Where patching is not immediately possible, the advisory says the issue can be mitigated “primarily by disabling/blocking inbound support for the ECP profile”. The advisory credits Timothy Dudley and Matz Hilven of Sentra. It names no CVE identifier and gives no range of affected versions, exploitation details or prevalence figures.44
ECP is the SAML profile for clients that are not ordinary browsers. The SP returns an <AuthnRequest> over the PAOS binding, the client takes it to the IdP over SOAP, and the client then delivers the IdP’s response to the SP, again over PAOS.2 According to the project’s FAQ, most deployments do not use it.45
Distributions backport fixes under their own version numbers. Debian’s DSA-6670-1 fixes its opensaml package in trixie as version 3.3.1-2+deb13u1, and a packaged library built from that release can report an older upstream version.46 The FAQ’s check is that, after updating and restarting, the logs of shibd and the web server module show OpenSAML 3.3.2.45 On a distribution package, verify the distributor’s fixed package release as well as what the restarted processes load.
What the patch changes
The fix is a single commit by Scott Cantor, dated 30 November 2026 and titled “XML handling improvements”, touching five files.47 The SimpleSigningRule, which checks a detached signature carried in request parameters, now ignores any message that is not a GET, or a POST with application/x-www-form-urlencoded content. The SAML 2.0 ECP decoder and the SAML 1.x and 2.0 SOAP decoders now reject any HTTP method other than POST. The SAML 1.x SOAP decoder also gains the rejection of an application/x-www-form-urlencoded content type that the SAML 2.0 decoders already had. A fifth change adds a null check on the transform list in the signature profile validator.47 Neither Shibboleth’s advisory nor its FAQ publishes the exploitation mechanism, and this article does not reconstruct one.
Some background explains why these components sit together. In the Shibboleth SP, security policy is a set of rules, and “During message processing, at least one rule must successfully authenticate a message or it will be rejected.”48 The SimpleSigning rule handles “a bulk signature over the raw content of a message, rather than embedded inside the message”.49 Two bindings use such signatures. In HTTP-Redirect the signature covers the URL-encoded SAMLRequest or SAMLResponse, RelayState and SigAlg parameters, and “Any other content in the original query string is not included and not signed.”3 The separate POST-SimpleSign binding signs a string built from the raw, unencoded XML of the message together with RelayState and SigAlg.50
What the FAQ adds
The project’s FAQ, last updated on 1 December 2026, gives mitigations at three levels.45
- Disable the endpoints. Comment out the ECP (PAOS) binding and the SOAP bindings in
protocols.xml, or the equivalent elements in oldershibboleth2.xmlfiles. Then confirm that a request to/Shibboleth.sso/SAML2/ECPreturns the message “Shibboleth handler invoked at an unconfigured location.” Disabling ECP closes the session-creation path; disabling the SOAP bindings addresses the separate SOAP exposure. - If ECP is in use and cannot be patched. Also comment out the
SimpleSigningpolicy rule. This is a different control from disabling endpoints, and it has a cost: the SP loses support for signed logout requests over HTTP-Redirect, and removing those endpoints properly would mean updating SP metadata. - On the IdP side. Where an organisation controls every IdP that the affected SP trusts, it can stop those IdPs issuing new attack material by suppressing the outbound HTTP-Redirect and POST-SimpleSign bindings. The FAQ calls this change unsupported and “at your own risk”. Stopping new issuance does not deal with messages attackers may already hold. For those, the FAQ describes a combination: give the IdP a new signing key for the affected SP, configure that SP to check only the new key and revoke the old one, and at the same time apply the outbound-binding change. Revoking the old key invalidates collected material for that SP; the binding change stops the supply of fresh material.
The FAQ also says the project believes evidence of exploitation can usually be found in web access logs, but that it is holding the details back for now. It says SP version 4 is intended to disable by default little-used features that SP version 3 enabled. Both statements are plans and beliefs, not published findings.45
The public advisory describes the flaw as forged messages accepted as coming from a trusted IdP, arising from how OpenSAML message processing and security features were combined in the SP. Neither it nor the FAQ describes a flaw in OpenSAML’s XML Signature verification code.4445
Where each failure class lives
The table names, for each class, the layer where its root cause lies, using five labels. Signature structure covers how a signature and its references are built. Validation and consumption covers the gap between verified and consumed content. Trust covers which keys are accepted. Binding and profile covers SAML’s message handling and conditions. Local mapping covers the step from assertion to account.
| Failure class | Layer | Root cause | Example | Check that stops it |
|---|---|---|---|---|
| Signature wrapping | Validation and consumption | Verifier resolves the reference anywhere; application reads by position | Somorovsky et al. 2012; CVE-2024-45409; CVE-2024-8698; CVE-2025-47949 | Consume only covered content; require the covered assertion in its expected place |
| Comment truncation | Validation and consumption | Comments dropped before digesting; text API returns a fragment | CVE-2017-11427 to 11430, CVE-2018-5387 | Patched library; full-text extraction of the covered element |
| Parser differential | Validation and consumption | Two parsers in one verification path | CVE-2025-25291, CVE-2025-25292, CVE-2025-66567 | One parser; take the digest from the verified SignedInfo |
| Round-trip instability | Validation and consumption | Serialiser changes meaning between views | CVE-2020-29509 to 29511 | Verify and consume the same parsed view; reject unstable markup |
| Malformed signature structure | Signature structure | Library accepts a second SignedInfo or a commented DigestValue | CVE-2025-29774, CVE-2025-29775 | Patched library |
| DTD and other constructs | Validation and consumption | Parser features alter what the SP reads without breaking the signature | CVE-2018-0486, CVE-2018-0489 | Patched library; refuse DTDs as defence in depth |
| External entities | Parser configuration (not signature) | Unsafe parser factory | CVE-2021-27736 | Disable DTDs and external entities |
| Signature exclusion | Validation and consumption | Missing coverage check | 3 of 14 frameworks in 2012 | Require a valid signature covering each assertion used |
| Key confusion | Trust | Key taken from the message | “Untrusted signatures”, Somorovsky et al. | Keys or anchors from configuration or signed metadata |
| Forged messages at ECP and SOAP endpoints | Binding and profile | Combination of OpenSAML processing and security features in the SP | Shibboleth advisory, 30 November 2026 | Patch; disable unused endpoints |
| Audience, recipient, replay | Binding and profile | Profile checks omitted | Profiles 4.1.4.3 and 4.1.4.5 | Check every condition; cache assertion IDs |
| Identity mapping | Local mapping | Lookup broader than the identifier’s rules | CVE-2026-137435 | Match the issuer’s authoritative identifier exactly |
The XML-specific examples are wrapping, comment truncation, the parser differential, round-trip instability, the 2018 Shibboleth parser flaws and the malformed signature structures. In each, the verified view and the interpreted view came apart: the reference resolved to one element while the application read another, the digested form left out text the parser kept, or a parser or serialiser changed the document the application saw. Signature exclusion sits in the same “validation and consumption” layer but is simply an omitted check. SAML’s profile of XML Signature requires one reference and enveloped signatures and recommends exclusive canonicalisation. Those limits do not by themselves tie the verified content to the content the application reads.1 The trust, binding-and-profile and local-mapping classes are general categories with counterparts in other federation protocols.
SAML beside OpenID Connect
OpenID Connect normally carries identity in a JSON Web Token signed with JWS. OIDC Core forbids alg none for ID tokens except where the response type returns no ID token from the authorisation endpoint and the client registered for it.51 In the compact serialisation, the JWS signing input is the base64url-encoded protected header and payload joined by a dot, so the signature commits to the exact payload bytes.52 There is no canonicalisation step that drops comments, and no reference to resolve inside a larger document. That removes the mechanisms behind wrapping, comment truncation and XML round-trip instability. It does not remove interpretation problems after verification. RFC 7519 requires JWT parsers either to reject duplicate claim names or to take the lexically last one, and RFC 8725 describes substitution and cross-JWT confusion, where a validly signed token is used somewhere it was not meant for.5354 The library’s JWT article covers alg: none, key confusion and those parser issues.
The relying-party checks map onto SAML’s by purpose, not one for one. OpenID Connect Core 1.0 section 3.1.3.7 requires the issuer identifier to “exactly match the value of the iss (issuer) Claim”. It requires aud to contain the client’s client_id, and the token to be rejected if it “contains additional audiences not trusted by the Client”. For asymmetric signatures the client must use “the keys provided by the Issuer”; for MAC-based algorithms the key is derived from the client secret. The current time must be before exp. If a nonce was sent, the token must carry it and its value must match. Both exp and iat are required claims; using iat to reject tokens issued too long ago is an optional, client-specific policy.51
| Concern | SAML Web Browser SSO | OpenID Connect |
|---|---|---|
| Who issued it | Issuer matched to metadata entity | iss exactly equals the issuer identifier |
| Meant for this relying party | AudienceRestriction with SP entity ID | aud contains client_id; no untrusted extra audiences |
| Delivered to the right place | Bearer Recipient; Destination where required | Pre-registered redirect URI, matched exactly, for the authorisation response |
| Correlated with a request | Bearer InResponseTo equals the AuthnRequest ID | nonce in the ID token binds it to the authentication request; state serves the redirect flow |
| Fresh | Bearer NotOnOrAfter; assertion conditions; replay cache | exp and iat required; extra iat age limit optional |
| Which key | Keys or anchors from metadata or configuration | Issuer’s keys for asymmetric algorithms; client secret for MAC algorithms |
Redirect URI matching protects where the authorisation response is sent; OIDC Core requires the redirect URI to “exactly match one of the Redirection URI values for the Client pre-registered at the OpenID Provider”.51 It does the job of Recipient and Destination only in part. In the code flow the ID token comes back over a direct TLS connection from the token endpoint, and for that case the specification lets TLS server validation stand in for checking the token signature. Every other ID token must have its signature validated.51 With the SAML POST binding, by contrast, the signed response travels through the browser, so an SP’s POST endpoint receives whatever XML an attacker submits.
What a service provider owner should test and configure
Configuration
- Require a signature covering each assertion you use. On the POST binding the amended profile requires each assertion to be protected by its own signature or by a signature on the response. Requiring direct assertion signatures, as Shibboleth’s
requireSignedAssertionsdoes, is a stricter policy you may choose.45 - Use the library’s verified view and never re-query the raw document. If you write integration code, take the assertion the library returns after verification. Do not run a fresh query such as
//Assertionover the original XML. OWASP says to “Never use getElementsByTagName to select security related elements in an XML document without prior validation”, and to use absolute XPath unless a hardened schema is in force.6 - Take keys from trusted configuration or signed metadata, and do not trust KeyInfo. A metadata signature is worth only as much as the separately established key or trust anchor used to check it, and it must cover the metadata you consume. Shibboleth’s signature filter requires “a primary signature over the metadata instance as a whole”, and its documentation warns against turning off the signer-name check.55 For refresh, Shibboleth’s XML metadata provider computes the reload interval from the metadata’s own validity or cache period and bounds it with minimum and maximum refresh delays.56 Expiry is a separate control: the
RequireValidUntilfilter rejects metadata that lacks avalidUntilattribute or whose validity runs further ahead than a configured maximum, seven days by default.57 - Patch the XML stack, and refuse DTDs and external entities in every SAML parser. Refusing DTDs would have blocked the January 2018 Shibboleth vector and the FusionAuth XXE, but the February 2018 flaw needed the library update.313233
- Check every profile condition. Check
Destinationagainst the actual assertion consumer URL wherever your binding and signatures make it applicable. Check the bearerRecipientandNotOnOrAfter. For solicited responses, check both the<Response>InResponseToand the bearerInResponseToagainst an outstanding request; on unsolicited responses accept neither. Evaluate the assertion’sConditions: its ownNotBeforeandNotOnOrAfter, theAudienceRestrictionagainst your entity ID, and any other condition. Reject any you do not understand. Keep a replay cache of assertion IDs for the whole period in which you would accept the assertion, which is the bearerNotOnOrAfterplus any clock skew you allow. OWASP also recommends rejecting SHA-1 signature and digest algorithms.2146 - Map identities exactly. Match the identifier the trusted issuer asserts within its own namespace, using the comparison rules agreed with that issuer. Do not let a database collation or a free-text name chosen by an IdP user widen the match. This is general guidance; for CVE-2026-137435 itself, follow Red Hat’s fix.43
- Turn off what you do not use. Every enabled endpoint exposes a parser and a policy before login. The November 2026 Shibboleth flaw sat in an endpoint enabled by default that most deployments never use. The FAQ advises that any path not in the SP’s published metadata is a candidate for removal.4445
- Treat IdP-initiated login as a risk. OWASP calls unsolicited responses “inherently less secure by design due to the lack of login CSRF protection”. If you must accept them, apply the profile’s unsolicited-response rules, keep a replay cache and allowlist any URL carried in RelayState.6 For SP-initiated flows, protect RelayState as the bindings recommend.3
Tests
Run these only against systems you are authorised to test, and first confirm that an ordinary signed login succeeds, so that a rejection means the control worked rather than that the setup is broken. SAML Raider’s documented features cover several regression cases. It can re-sign messages with a cloned or self-made certificate and remove signatures. It can “Perform eight common XSW attacks”, which is a sample of known variants rather than a complete set. It can “Insert XXE and XSLT attack payloads”. It supports the POST, Redirect and SOAP bindings.41 For each case, the security requirement is that no session is created for any account other than the one the IdP actually asserted; a sound SP may reject the message outright or, in the comment case, process it safely:
- Each of the tool’s wrapping variants against a response signed at assertion level, and again at response level. Expected: authentication fails and no session is created.
- A response with the signature removed, and one re-signed with a cloned certificate. Expected: authentication fails.
- Where the IdP lets you choose your identifier, a NameID with an embedded comment. The SP must never log you in as the truncated account; it may reject the response or use the complete value.
- A response carrying a DTD, an internal entity or an external entity. Expected: the message is rejected, or at minimum no entity is expanded or fetched and no session results.
- A second
SignedInfoinside the signature, and a comment insideDigestValue, matching the 2025 xml-crypto indicators. Expected: signature verification fails.2930 - Correctly signed responses with the wrong
Audience,RecipientorDestination, an unknownInResponseTo, an expired bearerNotOnOrAfter, an assertion outside itsConditionswindow, and an exact replay of a response already accepted. Expected: no session is created. - A request to every endpoint the SP software exposes, including ECP and SOAP paths, to confirm that disabled ones answer as disabled. Shibboleth’s FAQ gives the expected message for its SP.45
Inventory and patching
The advisories cited here trace back to a small number of libraries: OpenSAML and XMLTooling in C++, ruby-saml under omniauth-saml and GitLab, xml-crypto for Node.js, passport-saml and node-saml, samlify, Go’s encoding/xml under Go SAML stacks, and Keycloak as an IdP and broker.26202913243422 GitLab shows how such a library can sit two layers down. Three critical ruby-saml CVEs within six months reached its users through a gem that sits beneath omniauth-saml.2139 An inventory should list every SAML-consuming component, the library and version inside it, and who will patch it. On Linux it should cover library packages as well as product packages. Shibboleth warns that updating the shibboleth package alone “is not going to fix the issue”; the fix is in the separate library package.45
Some fixes cannot be applied at once, and the advisories offer vendor mitigation guidance for that gap. GitLab’s guidance for both ruby-saml releases was to enable GitLab’s own two-factor authentication for all accounts and to disallow the SAML two-factor bypass option. The March 2025 release added admin approval for automatically created users and noted that the attack needed a compromised valid account.2139 For Shibboleth, disabling ECP closes the session-creation path, and disabling the SOAP bindings handles the lesser SOAP exposure. Signing-key rotation invalidates material already collected only for SPs that are reconfigured to trust the new key alone.45
Where the evidence is thin
The advisories show which libraries were vulnerable, not how many deployments were exploited. Mattermost states it has no evidence its own implementation was exploited.34 Apart from GitLab’s log guidance for CVE-2024-45409 and Shibboleth’s statement that it holds log indicators it has not published, the sources say little about exploitation in the wild.2145 The 2012 result of 11 vulnerable frameworks out of 14 is one historical sample, fourteen years old; the later advisories are examples, and there is no denominator for how many SPs have had any of these flaws since.12 The mechanism of the November 2026 Shibboleth flaw is not public. Vendor severity ratings, such as Red Hat’s Moderate for the 2026 Keycloak flaw and the CVSS scores on GitHub advisories, are the vendors’ own assessments.432024
Strong verification also does not protect the parts of single sign-on that lie outside the protocol. An attacker who talks a help desk into resetting a victim’s IdP credentials will receive correctly signed, correctly scoped assertions, a route covered in the library’s article on help-desk voice phishing.
Conclusion
In the cases examined here, SAML service providers failed at the verifier because signature validation and the decisions built on it were treated as one step. An XML Signature authenticates SignedInfo and the transformed content its references resolve to. Whether the assertion the application reads is that content, whether the key is trusted for the issuer, and whether the profile’s conditions hold are separate checks. The XML-specific failures sit in the gap between verified and consumed content: wrapping, comment truncation, the 2018 Shibboleth parser flaws, Go’s round-trip instability and ruby-saml’s two parsers. Signature exclusion is a missing coverage check, KeyInfo trust is misplaced trust, malformed signature structures are library bugs, and identity mapping fails after verification. Audience, recipient, replay and binding failures belong to SAML’s profile, and their general categories have counterparts in OpenID Connect. The Shibboleth advisory of 30 November 2026 added forged messages at a default-enabled endpoint, with the mechanism still unpublished. The record is a set of disclosures, not a measure of prevalence. It consistently favours code that consumes only verified content and services that expose as little SAML surface as they need.
Footnotes
- S. Cantor, J. Kemp, R. Philpott and E. Maler (eds.), “Assertions and Protocols for the OASIS Security Assertion Markup Language (SAML) V2.0”, OASIS Standard, 15 March 2005, contributor list and sections 2.5.1, 3.2.2, 5.3 and 5.4. https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12
- OASIS, “Profiles for the OASIS Security Assertion Markup Language (SAML) V2.0”, OASIS Standard, 15 March 2005, sections 4.1.4.2, 4.1.4.3, 4.1.4.5, 4.1.5 and 4.2. https://docs.oasis-open.org/security/saml/v2.0/saml-profiles-2.0-os.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- OASIS, “Bindings for the OASIS Security Assertion Markup Language (SAML) V2.0”, OASIS Standard, 15 March 2005, sections 3.4.3, 3.4.4.1, 3.4.5.2, 3.5.3 and 3.5.5.2. https://docs.oasis-open.org/security/saml/v2.0/saml-bindings-2.0-os.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- S. Cantor (ed.), “SAML Version 2.0 Errata 05”, OASIS Approved Errata, 1 May 2012, erratum E26 (changes to Profiles 4.1.4.2, 4.1.4.3 and 4.1.4.5). https://docs.oasis-open.org/security/saml/v2.0/sstc-saml-approved-errata-2.0.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- Shibboleth Project, “RelyingParty”, Shibboleth SP3 documentation (requireSignedAssertions). https://shibboleth.atlassian.net/wiki/spaces/SP3/pages/2065334363/RelyingParty (opens in a new tab) ↩1 ↩2
- OWASP Cheat Sheet Series, “SAML Security Cheat Sheet”. https://cheatsheetseries.owasp.org/cheatsheets/SAML_Security_Cheat_Sheet.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- D. Eastlake et al. (eds.), “XML Signature Syntax and Processing Version 1.1”, W3C Recommendation, 11 April 2013, sections 3.2, 4.4.3.3, 4.5 and 8.1.3. https://www.w3.org/TR/xmldsig-core1/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- J. Boyer, D. Eastlake and J. Reagle, “Exclusive XML Canonicalization Version 1.0”, W3C Recommendation, 18 July 2002, sections 1.3 and 3. https://www.w3.org/TR/xml-exc-c14n/ (opens in a new tab) ↩1 ↩2
- Shibboleth Project, “TrustEngine”, Shibboleth SP3 documentation. https://shibboleth.atlassian.net/wiki/spaces/SP3/pages/2063695951/TrustEngine (opens in a new tab) ↩1 ↩2
- IBM Research, “XML signature element wrapping attacks and countermeasures” (M. McIntosh and P. Austel), publication record, CCS 2005 workshop paper. https://research.ibm.com/publications/xml-signature-element-wrapping-attacks-and-countermeasures (opens in a new tab) ↩
- J. Somorovsky, A. Mayer, J. Schwenk, M. Kampmann and M. Jensen, “On Breaking SAML: Be Whoever You Want to Be”, 21st USENIX Security Symposium, Bellevue, August 2012, pp. 397-412, sections 1, 3, 5, 6, 7, 8 and 9. https://www.usenix.org/system/files/conference/usenixsecurity12/sec12-final91.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12
- USENIX, “On Breaking SAML: Be Whoever You Want to Be”, USENIX Security ‘12 presentation page and abstract, August 2012. https://www.usenix.org/conference/usenixsecurity12/technical-sessions/presentation/somorovsky (opens in a new tab) ↩1 ↩2
- node-saml/passport-saml, “Signature bypass via multiple root elements” (GHSA-m974-647v-whv7, CVE-2022-39299), GitHub security advisory, 11 October 2022. https://github.com/node-saml/passport-saml/security/advisories/GHSA-m974-647v-whv7 (opens in a new tab) ↩1 ↩2
- NIST NVD, CVE API record for CVE-2022-39299, published 12 October 2022. https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2022-39299 (opens in a new tab) ↩
- NIST NVD, “CVE-2024-6800” (GitHub Enterprise Server XML signature wrapping), published 20 August 2024. https://nvd.nist.gov/vuln/detail/CVE-2024-6800 (opens in a new tab) ↩
- GitHub, “GitHub Enterprise Server 3.13 release notes”, 3.13.3 security fixes (CVE-2024-6800). https://docs.github.com/en/enterprise-server@3.13/admin/release-notes (opens in a new tab) ↩
- NIST NVD, “CVE-2024-9487” (GitHub Enterprise Server SAML signature verification), published 10 October 2024. https://nvd.nist.gov/vuln/detail/CVE-2024-9487 (opens in a new tab) ↩
- GitHub, “GitHub Enterprise Server 3.14 release notes”, 3.14.2 security fixes (CVE-2024-9487, regression from CVE-2024-4985 remediation). https://docs.github.com/en/enterprise-server@3.14/admin/release-notes (opens in a new tab) ↩
- NIST NVD, “CVE-2024-45409”, published 10 September 2024. https://nvd.nist.gov/vuln/detail/CVE-2024-45409 (opens in a new tab) ↩
- SAML-Toolkits/ruby-saml, “SAML authentication bypass via Incorrect XPath selector” (GHSA-jw9c-mfg7-9rx2, CVE-2024-45409), GitHub security advisory, September 2024. https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2 (opens in a new tab) ↩1 ↩2 ↩3
- GitLab, “GitLab Critical Patch Release: 17.3.3, 17.2.7, 17.1.8, 17.0.8, 16.11.10”, 17 September 2024. https://about.gitlab.com/releases/2024/09/17/patch-release-gitlab-17-3-3-released/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- NIST NVD, “CVE-2024-8698” (Keycloak XMLSignatureUtil), published 19 September 2024. https://nvd.nist.gov/vuln/detail/CVE-2024-8698 (opens in a new tab) ↩1 ↩2
- NIST NVD, “CVE-2025-47949”, published 19 May 2025. https://nvd.nist.gov/vuln/detail/CVE-2025-47949 (opens in a new tab) ↩
- tngan/samlify, “SAML Signature Wrapping attack” (GHSA-r683-v43c-6xqv, CVE-2025-47949), GitHub security advisory, May 2025. https://github.com/tngan/samlify/security/advisories/GHSA-r683-v43c-6xqv (opens in a new tab) ↩1 ↩2 ↩3
- K. Ludwig, “Duo Finds SAML Vulnerabilities Affecting Multiple Implementations”, Duo Labs blog, 27 February 2018 (archived copy). https://web.archive.org/web/20191122165148/https://duo.com/blog/duo-finds-saml-vulnerabilities-affecting-multiple-implementations (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- CERT/CC, “VU#475445: Multiple SAML libraries may allow authentication bypass via incorrect XML canonicalization and DOM traversal”, published 27 February 2018. https://www.kb.cert.org/vuls/id/475445 (opens in a new tab) ↩1 ↩2 ↩3
- Duo Security, “Duo PSA-2017-003”, product security advisory for Duo Network Gateway (CVE-2018-7340). https://duo.com/labs/psa/duo-psa-2017-003 (opens in a new tab) ↩
- NIST NVD, “CVE-2017-11427”, published 17 April 2019. https://nvd.nist.gov/vuln/detail/CVE-2017-11427 (opens in a new tab) ↩
- node-saml/xml-crypto, “XML Signature Verification Bypass via Multiple SignedInfo References” (GHSA-9p8x-f768-wp2g, CVE-2025-29774), GitHub security advisory, 14 March 2025. https://github.com/node-saml/xml-crypto/security/advisories/GHSA-9p8x-f768-wp2g (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- node-saml/xml-crypto, “XML Signature Verification Bypass via DigestValue Comment” (GHSA-x3m8-899r-f7c3, CVE-2025-29775), GitHub security advisory, 14 March 2025. https://github.com/node-saml/xml-crypto/security/advisories/GHSA-x3m8-899r-f7c3 (opens in a new tab) ↩1 ↩2 ↩3
- Shibboleth Project, “Shibboleth Service Provider Security Advisory [12 January 2018]” (CVE-2018-0486). https://shibboleth.net/community/advisories/secadv_20180112.txt (opens in a new tab) ↩1 ↩2
- Shibboleth Project, “Shibboleth Service Provider Security Advisory [27 February 2018]” (CVE-2018-0489). https://shibboleth.net/community/advisories/secadv_20180227.txt (opens in a new tab) ↩1 ↩2
- NIST NVD, “CVE-2021-27736” (FusionAuth fusionauth-samlv2 XXE), published 22 April 2021. https://nvd.nist.gov/vuln/detail/CVE-2021-27736 (opens in a new tab) ↩1 ↩2
- J. Forsén, “Coordinated disclosure of XML round-trip vulnerabilities in Go’s standard library”, Mattermost blog, 14 December 2020. https://mattermost.com/blog/coordinated-disclosure-go-xml-vulnerabilities/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Mattermost, “Security Advisory: XML attribute instability in Go’s encoding/xml” (CVE-2020-29509), xml-roundtrip-validator repository, December 2020. https://github.com/mattermost/xml-roundtrip-validator/blob/master/advisories/unstable-attributes.md (opens in a new tab) ↩
- P. Stöckli, “Sign in as anyone: Bypassing SAML SSO authentication with parser differentials”, The GitHub Blog, 12 March 2025. https://github.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-parser-differentials/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- SAML-Toolkits/ruby-saml, “SAML authentication bypass due to DOCTYPE handling (parser differential)” (GHSA-4vc4-m8qh-g8jm, CVE-2025-25291), GitHub security advisory, 12 March 2025. https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-4vc4-m8qh-g8jm (opens in a new tab) ↩
- SAML-Toolkits/ruby-saml, “SAML authentication bypass due to namespace handling (parser differential)” (GHSA-754f-8gm6-c4r2, CVE-2025-25292), GitHub security advisory, 12 March 2025. https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-754f-8gm6-c4r2 (opens in a new tab) ↩
- GitLab, “GitLab Critical Patch Release: 17.9.2, 17.8.5, 17.7.7”, 12 March 2025. https://about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released/ (opens in a new tab) ↩1 ↩2 ↩3
- SAML-Toolkits/ruby-saml, “SAML authentication bypass due to namespace handling (parser differential)” (GHSA-9v8j-x534-2fx3, CVE-2025-66567), GitHub security advisory, 8 December 2025. https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-9v8j-x534-2fx3 (opens in a new tab) ↩
- Compass Security, “SAML Raider: SAML2 Burp Extension”, GitHub repository README. https://github.com/CompassSecurity/SAMLRaider (opens in a new tab) ↩1 ↩2
- NIST NVD, “CVE-2026-137435” (Keycloak SAML brokering, case-distinct NameID), published 26 November 2026. https://nvd.nist.gov/vuln/detail/CVE-2026-137435 (opens in a new tab) ↩
- Red Hat, “CVE-2026-137435”, Red Hat Customer Portal CVE page, public 26 November 2026 (statement and mitigation). https://access.redhat.com/security/cve/CVE-2026-137435 (opens in a new tab) ↩1 ↩2 ↩3
- Shibboleth Project, “Shibboleth Service Provider Security Advisory [30 November 2026]”. https://shibboleth.net/community/advisories/secadv_20261130.txt (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- Shibboleth Project, “secadv_20261130” (FAQ and mitigations for the ECP forged message advisory), Shibboleth wiki, updated 1 December 2026. https://shibboleth.atlassian.net/wiki/spaces/SP3/pages/5885067302/secadv_20261130 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
- Debian Security Tracker, “DSA-6670-1: opensaml - security update”. https://security-tracker.debian.org/tracker/DSA-6670-1 (opens in a new tab) ↩
- S. Cantor, “XML handling improvements”, cpp-opensaml commit ba8fb40945176567b50a01c77787f432ddb662cf, 30 November 2026. https://codeberg.org/Shibboleth/cpp-opensaml/commit/ba8fb40945176567b50a01c77787f432ddb662cf (opens in a new tab) ↩1 ↩2
- Shibboleth Project, “PolicyRule”, Shibboleth SP3 documentation. https://shibboleth.atlassian.net/wiki/spaces/SP3/pages/2065334543/PolicyRule (opens in a new tab) ↩
- Shibboleth Project, “SimpleSigning Rule”, Shibboleth SP3 documentation. https://shibboleth.atlassian.net/wiki/spaces/SP3/pages/2065334554/SimpleSigning+Rule (opens in a new tab) ↩
- J. Hodges and S. Cantor (eds.), “SAMLv2.0 HTTP POST ‘SimpleSign’ Binding Version 1.0”, OASIS Committee Draft 04, 1 December 2008. https://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-binding-simplesign.html (opens in a new tab) ↩
- N. Sakimura, J. Bradley, M. Jones, B. de Medeiros and C. Mortimore, “OpenID Connect Core 1.0 incorporating errata set 2”, OpenID Foundation, 15 December 2023, sections 2, 3.1.2.1 and 3.1.3.7. https://openid.net/specs/openid-connect-core-1_0.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- M. Jones, J. Bradley and N. Sakimura, “JSON Web Signature (JWS)”, RFC 7515, IETF, May 2015, sections 2 and 5. https://www.rfc-editor.org/rfc/rfc7515 (opens in a new tab) ↩
- M. Jones, J. Bradley and N. Sakimura, “JSON Web Token (JWT)”, RFC 7519, IETF, May 2015, section 4. https://www.rfc-editor.org/rfc/rfc7519 (opens in a new tab) ↩
- Y. Sheffer, D. Hardt and M. Jones, “JSON Web Token Best Current Practices”, RFC 8725, IETF, February 2020, sections 2.7 and 2.8. https://www.rfc-editor.org/rfc/rfc8725 (opens in a new tab) ↩
- Shibboleth Project, “SignatureMetadataFilter”, Shibboleth SP3 documentation. https://shibboleth.atlassian.net/wiki/spaces/SP3/pages/2063696211/SignatureMetadataFilter (opens in a new tab) ↩
- Shibboleth Project, “XMLMetadataProvider”, Shibboleth SP3 documentation (minRefreshDelay, maxRefreshDelay, refreshDelayFactor). https://shibboleth.atlassian.net/wiki/spaces/SP3/pages/2063696005/XMLMetadataProvider (opens in a new tab) ↩
- Shibboleth Project, “RequireValidUntilMetadataFilter”, Shibboleth SP3 documentation. https://shibboleth.atlassian.net/wiki/spaces/SP3/pages/2063696214/RequireValidUntilMetadataFilter (opens in a new tab) ↩

SecSIG