Can my SAML library sign with ML-DSA today?
A SAML library can sign with ML-DSA only if it implements the ML-DSA identifiers defined in the Internet-Draft draft-eastlake-rfc9231bis-xmlsec-uris, and that draft is not a published standard. As of 4 December 2026, the identifiers are defined only in that individual draft, which is not endorsed by the IETF and whose latest revision is -11, dated 19 November 2026. Some XML libraries have experimental or open work on it, but none of the sources reviewed show a released, general-purpose SAML signing path with ML-DSA. If you build or run a service provider or identity provider, the question is whether the XML Signature library underneath your SAML stack has shipped those identifiers, not whether the SAML protocol itself allows post-quantum signatures.
This affects developers of SAML service providers and identity providers, and the teams that operate them, including the people who choose or upgrade the XML library their product depends on. Start by identifying the exact XML Signature library and version in your stack, then check its release notes and issue tracker for the draft -09 ML-DSA URIs. Apache Santuario Java pull request #651, which adds ML-DSA-44, ML-DSA-65 and ML-DSA-87, was still open on 4 December 2026, and Santuario pull request #652, which adds ML-KEM key transport, had a review requesting changes on the same date. The xmlsec release notes list experimental ML-DSA support for some backends in version 1.3.10, but the notes do not state that these are production-ready. Confirm each result against your own build rather than assuming it carries over to your version or edition.
Set up a test before you plan any change. Sign a test assertion with the draft -09 ML-DSA URIs, verify it, and check how your library handles a ds:Object carrying a SignatureContext element, which the Santuario work rejects for ML-DSA because java.security.Signature cannot pass a signature context. Then check whether the key travels as a ds:KeyValue or dsig11:DEREncodedKeyValue, since an empty ds:KeyValue was found to fail schema validation in that work. Downstream systems must also accept the result: Microsoft's AD CS documentation advises validating compatibility of ML-DSA certificates in a test environment before production. Record which library versions pass, and treat that record as the basis for any partner conversation about timelines.
Where SAML uses public-key signatures today
This table maps each place a SAML message depends on XML Signature or public keys, and whether post-quantum work touches it. Read the last column first, since it shows where the work lands. The main takeaway is that signed browser-delivered assertions are the most exposed point, and that signing with ML-DSA depends on an XML Signature identifier that is not yet final.
| Where SAML uses keys | What the specification requires | Post-quantum work touches it | Specification to cite |
|---|---|---|---|
| Signed assertions delivered through the browser | The response message must be digitally signed using XML Signature, and a POSTed assertion MUST be signed | Yes | SAML 2.0 Technical Overview |
| Signed SAML responses | Responses carry XML Signature, and signing algorithms must be ones defined for XML Signature | Yes | SAML 2.0 Errata E81, SAML Core section 5.4.1 |
| Key material in SAML metadata | Signing and encryption keys can be expressed in SAML metadata XML documents, and a PKI is recommended but not mandated | Yes | SAML 2.0 Technical Overview |
| Algorithm identifiers for ML-DSA in XML Signature | Identifiers exist only in an individual Internet-Draft that is not IETF-endorsed, with latest revision -11 dated 19 November 2026 | Yes | draft-eastlake-rfc9231bis-xmlsec-uris |
| Encryption keys for assertions | Encryption uses XML Encryption key transport, and no post-quantum key transport identifier is settled in the sources listed on this page | Yes | Confirm against the XML Encryption specification and the W3C strategy issue 484 |
| Signature algorithm defined for XML Signature | Errata E81 allows any algorithm defined for XML Signature, so a post-quantum algorithm is allowed only once it has an identifier | Not applicable | SAML 2.0 Errata E81 |
What the standards have published for ML-DSA in XML Signature
The standards for ML-DSA inside XML Signature are not yet final, and a SAML library cannot rely on a published identifier. NIST published FIPS 204 (ML-DSA) as a final standard on 13 August 2024, which settles the algorithm itself. The XML-level identifiers are a different matter. As of 4 December 2026, the identifiers for ML-DSA, SLH-DSA and ML-KEM in XML Security are defined only in the individual Internet-Draft draft-eastlake-rfc9231bis-xmlsec-uris. Its latest revision is -11, dated 19 November 2026. The IETF has not endorsed it, although its header lists Standards Track, and it expires on 23 May 2027. If approved, it would obsolete RFC 9231. Check the IETF datatracker entry for the current revision and status before you rely on any URI from it.
The venue question is also open. W3C strategy issue 484, Post Quantum Cryptography for XML Signature and XML Encryption Suites, opened on 17 November 2024, names SAML as its main driver. The issue is still open, and its discussion describes no W3C or OASIS working group assigned, with the IETF draft as the active vehicle. SAML 2.0 Errata E81 changed the signing text in SAML Core section 5.4.1 and SAML Metadata section 3.1.1 from a requirement to support RSA with the rsa-sha1 identifier to the statement that any algorithm defined for use with XML Signature MAY be used. That gives an implementer room to sign with a new algorithm, but it does not name an ML-DSA identifier. A library that accepts E81 has not thereby implemented ML-DSA. You still need a concrete URI from the XML Signature work, and you should confirm which draft revision and namespace the library implements.
For your library check, treat the draft as the only public reference and say so in your findings. Ask the library maintainer which draft revision it implements and which namespace it uses. A reasonable test signs with the draft -09 ML-DSA URIs, verifies the result, and checks how the implementation handles a ds:Object SignatureContext. It should either handle it or reject it, and the key should travel as a ds:KeyValue or dsig11:DEREncodedKeyValue. Do not treat an implementation as settled while the draft remains unendorsed. Plan for the identifiers to change, and record which revision your test used.
Which libraries have shipped ML-DSA support in SAML and XML signatures
XML signature libraries are where SAML signing actually happens, so their status sets the ceiling for everything above them. The sources show a split: some libraries have experimental ML-DSA paths in a released version, while the main Java implementation still has its ML-DSA change open. Read each entry against the version and date given, because the sources do not show that any of these is production-ready.
- Apache Santuario Java (PR 651): Pull request #651, 'Add ML-DSA (FIPS 204) post-quantum signature support', was opened 21 August 2026 and was still open on 4 December 2026. It adds ML-DSA-44, ML-DSA-65 and ML-DSA-87 through the JSR-105 DOM API and the StAX path.
- Apache Santuario Java (PR 652): Pull request #652 adds ML-KEM-512, ML-KEM-768 and ML-KEM-1024 key transport. It was open on 4 December 2026 and had a review requesting changes.
- xmlsec 1.3.10: Release notes list experimental ML-DSA and SLH-DSA-SHA2 signature algorithms in xmlsec-openssl, and experimental ML-DSA in xmlsec-gnutls. The listed release date is 02 Apr, without a year.
- xmlsec 1.3.12: Release notes list experimental ML-KEM support in xmlsec-openssl. The notes for 1.3.11 and 1.3.13 do not mention these algorithms.
Check the xmlsec entries against the exact build you run, since the notes describe experimental features in specific backends. Confirm the Santuario status in the pull request thread before relying on either pull request.
SAML toolkits sit on top of XML signature libraries, so a toolkit can only offer ML-DSA when its underlying library does. The entries here are reports and requests rather than shipped support. They show that certificate parsing and algorithm options are where the friction appears first.
- OIOSAML.Java issue 128: The issue, dated 2 November 2026, proposed an ML-DSA option beside the RSA_SHA256 default. It was closed as not planned on 2 December 2026.
- flipbox saml-sp issue 277: Dated 3 December 2026, the issue reports that PHP 8.5.13 with OpenSSL 3.5.7 can read ML-DSA certificates but shows the key type as unknown. It also says phpseclib support was not yet released.
- Research prototype: A PoPETs 2024 paper by Müller and Oupický implemented post-quantum XML and SAML single sign-on in OpenSAML, Apache Santuario and BouncyCastle as a research prototype. It is not a shipped product.
- No other toolkit entries: The sources do not show a shipped ML-DSA SAML signing release from the toolkits listed here.
Check your toolkit's issue tracker and release notes for the signature algorithm options it exposes, and test certificate parsing separately from signing.
Identity products are the systems that issue tokens, certificates and passwordless credentials. The authentik entry is the clearest case where a product has shipped some ML-DSA support while leaving SAML signing for later. It shows that certificate and token support can arrive before SAML.
- authentik 2026.11: The post dated 3 November 2026 says ML-DSA support arrived in authentik 2026.11 for certificates, OIDC tokens and passkeys.
- SAML signing waiting on XML Signature: The same post says SAML signing with ML-DSA will follow once XML Signature publishes an algorithm identifier for it.
- Dependency on the identifier: The XML Security identifiers for ML-DSA are defined only in an individual Internet-Draft, which is not endorsed by the IETF. Products are likely to wait for a stable identifier before shipping SAML signing.
- Other products: The sources do not show comparable entries for other identity products.
Confirm which signature types your identity product supports for each protocol, since support for certificates or tokens does not imply support for SAML assertions.
How to test a library for ML-DSA signature support
A useful test of a SAML or XML signature library starts by pinning the draft revision you are testing against, because the identifiers are still moving. The draft that defines ML-DSA URIs for XML Security is draft-eastlake-rfc9231bis-xmlsec-uris, and its latest revision is -11 dated 19 November 2026. Pull request #651 in Apache Santuario takes its URIs from section 3.3.15 of that work and moved from a placeholder namespace to ` after draft -09. If your test uses the -09 URIs, it will fail against any library that follows a later namespace, so record the revision and namespace in the test fixture before you run anything. The draft is an individual Internet-Draft that the IETF has not endorsed, so confirm the identifiers again before any production rollout.
Build the test in three checks. First, sign a sample XML document with the pinned ML-DSA URI and verify the result with the same library, then with a second implementation if you have one. Second, add an optional ds:Object carrying a SignatureContext element and record whether the library handles it or rejects it. Santuario PR 651 rejects SignatureContext for ML-DSA on both sign and verify, because java.security.Signature cannot pass a signature context, so a rejection is the expected result for that library and should be recorded as a pass for the right reason, not a failure. Third, inspect the serialized output to confirm where the public key appears. PR 651 switched ML-DSA key output to dsig11:DEREncodedKeyValue after a review found that an empty ds:KeyValue was rejected at schema validation, so validate the output against the schema rather than trusting that a verifier accepted it.
Treat the results as evidence about one library, one version and one draft revision, not about the product that embeds it. The Santuario pull request was still open on 4 December 2026 and the xmlsec release notes list ML-DSA only as experimental in some builds, so check the exact version and backend, such as OpenSSL or GnuTLS, that your application loads at runtime. Microsoft's AD CS guidance also advises validating compatibility in a test environment before production, because not every third-party application recognizes ML-DSA certificates. Keep the test in version control with its pinned revision, rerun it when the library or the draft changes, and record which identifiers and namespaces you verified so the next reviewer can reproduce the result.
What changes when a library adds ML-DSA
Adding ML-DSA to an XML signature library changes more than the algorithm list. Identifiers, schema shape, context handling and certificate parsing each move independently, so a library can sign correctly and still fail on the other side of a SAML exchange. Each card below names one change and what to check for it.
Identifiers move between draft revisions
The ML-DSA URIs used in XML Signature come from an Internet-Draft that is still changing. Apache Santuario's pull request 651 took its URIs from draft-eastlake-rfc9231bis section 3.3.15 and moved from a placeholder namespace to after draft -09. A library built against one revision can produce signatures a partner rejects. Check which draft revision each algorithm URI follows, and confirm both sides agree on the namespace before testing signatures end to end.
Santuario PR 651SignatureContext fails with java.security.Signature
The optional SignatureContext element cannot be passed through java.security.Signature, so Santuario's pull request 651 rejects it for ML-DSA signatures on both signing and verification. A SAML message that carries a ds:Object SignatureContext will therefore fail under that library even when the rest of the signature is valid. Test whether your library handles or rejects that element, and make sure the rejection is deliberate and visible in logs rather than a silent mismatch.
Key encoding changes the schema shape
For ML-DSA keys in StAX signing, Santuario's pull request 651 emits dsig11:DEREncodedKeyValue instead of an empty ds:KeyValue, because review found the empty element was rejected at schema validation. A parser that expects the standard ds:KeyValue shape can reject the message before the signature is checked. Confirm which key element the library emits and that the receiving side validates against the schema that includes the dsig11 namespace.
Parsers report unknown key types
Some parsers read ML-DSA certificates but do not recognize the key type. A flipbox saml-sp report from 3 December 2026 describes PHP 8.5.13 with OpenSSL 3.5.7 reading ML-DSA certificates and reporting the key type as unknown, with phpseclib support not yet released. The certificate may load while downstream code that switches on key type fails. Load a test ML-DSA certificate in each stack your federation uses and confirm the key type is reported and handled.
flipbox issue 277Partners may not recognize ML-DSA certificates
Microsoft's AD CS documentation warns that not all third-party applications, devices or services recognize ML-DSA certificates, and advises validating compatibility in a test environment before production. A service provider or identity provider can issue a valid certificate that a partner's SAML product does not accept. Ask each federation partner which algorithms and certificate types it supports, and test a signed assertion against each one before changing production signing keys.
AD CS ML-DSA overviewWhat to do now to check library readiness
This sequence shows whether the XML signature and SAML libraries in your service provider and identity provider can handle post-quantum signatures today. It ends with a dated, repeatable record that tells you what to keep in production and when to test again.
Inventory your XML signature and SAML libraries
List every XML signature, XML encryption and SAML library that your service provider and identity provider load, including transitive dependencies and the language runtimes they run on. Record the exact version of each, the build or patch level, and the crypto provider it uses underneath, such as Java's built-in security providers, OpenSSL or GnuTLS. Assign an owner for each entry. The step is done when every library has a name, a version and an owner in one shared inventory that both teams have reviewed.
Run the draft-based test against each library
Build a small test for each library using the draft-eastlake-rfc9231bis-09 identifiers. Sign a test document with the ML-DSA URIs, then verify it. Check three things: that verification succeeds, that a ds:Object containing SignatureContext is either handled or rejected, and that the public key travels as a ds:KeyValue or a dsig11:DEREncodedKeyValue element that passes schema validation. Run the test with the exact library versions from the inventory. Record the pass or fail result for each check, and keep the test code under version control so it can be rerun unchanged.
Ask each maintainer or vendor for status
Send each library maintainer or vendor a written question asking whether they support the draft identifiers, whether any implementation work is open, and whether they have a published test result for the revision you are targeting. Ask them to name the revision they tested. Record each reply with its date and the sender. Treat a reply that says nothing has been published as a finding, not as a gap to fill with assumptions. For example, Apache Santuario's ML-DSA pull request and the xmlsec release notes can be checked directly against their repositories as a cross-reference.
Keep classical signing as the production path
Leave RSA or ECDSA signing as the production path for every SAML assertion and metadata document until the XML Signature identifiers for post-quantum algorithms are final and your test results show support. Do not change signing algorithms in production on the basis of a draft, a pull request or a test environment. Document the decision with its date and the reason, and assign an owner to revisit it. The step is done when production configuration and the decision record match.
Record results with the draft revision tested
Write one entry for each library that states its name, its exact version, the draft revision and URIs you tested, the date of the test, each check's result, and the vendor replies collected in the previous step. Store the entries where both the security and identity teams can read them. A reader should be able to tell exactly what was tested, against which revision and with which result, without asking the author. Mark any library with an open or unanswered vendor question as not ready.
Schedule a retest when the draft advances
Set a recurring review that is also triggered when draft-eastlake-rfc9231bis-xmlsec-uris publishes a new revision, when a tracked library releases a version, or when the W3C strategy discussion records a working group assignment. At each trigger, rerun the test from the second step against the new revision and the library versions in use, and update the record. The step is done when the next review date and its owner appear in the record and the retest has been scheduled in your team's tracker.
Risks to notice when a library claims ML-DSA support
A library can advertise ML-DSA and still fail in a live federation. The risks below come from draft identifiers, experimental release notes, partner software that does not yet read these certificates, and signatures that one parser accepts while another rejects them. Each card explains how the problem shows up in testing.
Experimental features in release notes
Some xmlsec release notes list ML-DSA and SLH-DSA-SHA2 signature algorithms as experimental, and the 1.3.12 notes add experimental ML-KEM to xmlsec-openssl. Experimental means the algorithm may change or be removed, so it is not production-ready. In testing, check whether the release note says experimental, which backend (OpenSSL or GnuTLS) carries the feature, and whether your own signing and verification round trip passes on that exact version before you rely on it.
xmlsec releasesIdentifiers that change between drafts
The XML Security URIs for ML-DSA, SLH-DSA and ML-KEM are defined only in an Internet-Draft that is not yet endorsed by the IETF. Santuario's pull request moved its namespace after draft -09, which means an identifier that worked in one build can stop matching another. In testing, record the exact URI each library emits, confirm it matches the draft revision you target, and fail the build if a URI changes between library versions.
IETF draft datatrackerPartners that do not recognize ML-DSA certificates
Certificates signed with ML-DSA may be read by some tools and rejected or misreported by others. One open issue reports that PHP with OpenSSL 3.5.7 reads ML-DSA certificates but shows the key type as unknown, and Microsoft advises testing third-party compatibility before production. In testing, send a sample ML-DSA certificate to every partner endpoint in your federation and record whether each one accepts it, reports its key type correctly and completes sign-in.
Microsoft ML-DSA overviewSignatures one parser cannot verify
A library may produce a signature that its own verifier accepts while a partner's XML parser rejects it, for example because a key is placed in an empty ds:KeyValue element that fails schema validation. Santuario changed its StAX output to use dsig11:DEREncodedKeyValue after a review caught exactly this problem. In testing, sign a message with one library and verify it with a second, independent parser, and validate the output against the XML schema before any partner receives it.
Santuario PR 651Unsupported options that fail silently
A library may accept a SignatureContext element or an option it cannot honor. Santuario rejects SignatureContext for ML-DSA because java.security.Signature cannot pass a signature context. In testing, include a message that carries SignatureContext and confirm the library either handles it or fails loudly, rather than signing and then letting a partner reject the result later.
What the XML Security standards have not settled yet
The main open question for SAML signing with post-quantum keys is who owns the standard. As of 4 December 2026, the identifiers for ML-DSA, SLH-DSA and ML-KEM in XML Security are defined only in the Internet-Draft draft-eastlake-rfc9231bis-xmlsec-uris, whose latest revision is -11, dated 19 November 2026. That draft is not endorsed by the IETF, carries a Standards Track header, expires 23 May 2027 and would obsolete RFC 9231 if approved. The W3C strategy issue on post-quantum XML Signature and XML Encryption (w3c/strategy #484, opened 17 November 2024) is still open, names SAML as the main driver, and records that no W3C or OASIS working group has been assigned. Confirm the current status of the draft in the IETF datatracker entry before you rely on any URI from it.
The practical effect is that a library cannot yet be held to a published identifier for SAML signing. The authentik post of 3 November 2026 says ML-DSA support arrived in authentik 2026.11 for certificates, OIDC tokens and passkeys, but that SAML signing with ML-DSA will follow once XML Signature publishes an algorithm identifier for it. The OIOSAML.Java request for an ML-DSA option (issue #128, opened 2 November 2026) was closed as not planned on 2 December 2026, so a Danish public-sector SAML toolkit has declined this work for now. When you check a library, treat a missing identifier as an open dependency, not as a bug in the library, and record which draft revision the library implements. Apache Santuario's ML-DSA pull request (#651) takes its URIs from draft -09 and moved to a new namespace after that revision, so a library built on an earlier draft will not match a later one without changes.
Questions people ask about SAML library post-quantum support
Does post-quantum support in a SAML library matter if I only run a service provider?
Yes, it can matter, but the impact depends on which side signs. A service provider verifies signed assertions and may sign its own AuthnRequests or metadata, depending on configuration. Your library must be able to verify whatever algorithm the identity provider uses, and any signing key you control must be handled by a library that can produce it. Check which operations your deployment actually performs before assuming the work applies only to the identity provider. Your partners' settings determine what you receive, so confirm the signature algorithms they plan to use with them directly.
Is ML-DSA a finished standard for XML signatures yet?
Not for XML signatures as of 4 December 2026. NIST published ML-DSA as FIPS 204 on 13 August 2024, but that defines the algorithm, not how it appears in XML. The XML algorithm identifiers are currently defined only in the individual Internet-Draft draft-eastlake-rfc9231bis-xmlsec-uris, whose latest revision is -11, dated 19 November 2026. That draft is not endorsed by the IETF and lists Standards Track in its header. The W3C strategy issue on post-quantum XML Signature remains open, with no W3C or OASIS working group assigned. Treat any identifier you implement as subject to change until a published standard fixes it.
How do I test a SAML or XML signature library for post-quantum signatures?
Build a small test harness outside production. Sign a sample XML document with the ML-DSA identifiers from the draft, then verify it with the same library. Next, check how the library handles an optional SignatureContext object, which should either be handled or rejected cleanly rather than silently ignored. Finally, confirm the key travels correctly, either as a ds:KeyValue or as a dsig11:DEREncodedKeyValue element, and that the output passes schema validation. Record the library name, exact version and algorithm identifiers you tested. Microsoft advises validating compatibility in a test environment before production for ML-DSA certificates, and the same discipline applies here.
What should I ask a library vendor about their post-quantum roadmap?
Ask for specific, dated answers rather than general commitments. Request the exact versions that support ML-DSA signatures in XML, and whether support covers both signing and verification. Ask whether the implementation follows a published identifier or a draft, and how the vendor will update it if the identifier changes. Confirm whether they support ML-KEM key transport and in which structure. Ask whether any capability is experimental, and whether the release notes or issue trackers document it. Compare the answers against the open pull requests and issues in the library's public repository, since these show what is in progress and what has been closed as not planned.
Should my team build post-quantum support in-house or bring in outside help?
The answer depends on how much XML signature work your team already does and how many partners you federate with. In-house work covers building the test harness, tracking draft changes, and maintaining patched library builds, all of which recur as the drafts move. Outside help can accelerate the test harness and the evidence you need for a review, while you keep ownership of production decisions. Costs grow with the number of libraries, identity providers and federation partners involved. Ask any provider for a written scope that names the libraries, versions, algorithms and tests covered, and how retesting is handled when a draft revision changes.
Do I have to keep classical signing when I add post-quantum algorithms?
The sources supplied do not establish a rule that classical signing can be removed, and the SAML 2.0 Errata now allows any algorithm defined for XML Signature to be used, rather than requiring a specific one. In practice, your partners must be able to verify what you send, so removing classical signing before they support post-quantum signatures can break federation. Plan a period where both are supported, confirm with each partner which algorithms they accept, and document the cutover date you agree on. Check the SAML metadata each partner publishes, since the signing methods it lists determine what they will accept.
Where the signature sits in a SAML response
The identity provider builds a SAML response and signs it with XML Signature, and the public key needed to verify that signature travels in SAML metadata or in a ds:KeyValue element inside the signature. The service provider's XML library parses the response, resolves the key, and verifies the signature. ML-DSA identifiers would be read at the algorithm step of the signature, and any SignatureContext object is checked during verification. Test both points first, because the sources say the identifiers for ML-DSA in XML Security are not yet standardized and not every library rejects SignatureContext the same way.
How a SAML response signature moves from the identity provider to the service provider library.
How DeployOpen works on this
DeployOpen approaches library readiness as a scoped, documented test: we identify which XML signature library your service provider or identity provider uses, check it against the draft algorithm identifiers and the test steps in the current IETF draft, and record what it can and cannot sign, verify and carry. The result is evidence your team can act on, not a claim that any library is ready.
How we scope
- We confirm which SAML and XML Signature libraries, versions and language runtimes your products actually use.
- We agree in writing which algorithms are in scope, such as the ML-DSA and ML-KEM identifiers in the current draft.
- We set out the fixed-scope deliverables and the test environment before any work starts, with the written scope governing.
How we build
- We build a test harness that signs with the draft -09 ML-DSA identifiers and checks that verification succeeds.
- We test how each library handles the optional SignatureContext element and how it carries the key as KeyValue or DEREncodedKeyValue.
- We record every result against the exact library version, so each finding can be reproduced by your own engineers.
How we hand over
- You receive a written readiness report listing each library, version, algorithm tested and observed behavior.
- The report separates what was verified in testing from what the sources say is still pending or unpublished.
- We hand over the test harness and steps so your team can rerun the checks after library upgrades.
How we support
- Ongoing support and continuous testing are available as a retainer, for example when a library ships new post-quantum support.
- We can retest a library after the IETF draft changes identifiers or a release notes a new algorithm.
- Before a production change, ask us to confirm which partners and certificate consumers were tested against the same test setup.

