CoreWCF CVE-2026-54781
HIGHSeverity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Network-reachable WS-Federation endpoint (AV:N); no credentials needed beyond the assertion itself (PR:N); AC:H because attacker depends on a permissive trusted STS issuing a triggering assertion shape; full confidentiality and integrity impact via identity impersonation, no availability impact.
Primary rating from Vendor (https://github.com/CoreWCF/CoreWCF).
CVSS VectorVendor: https://github.com/CoreWCF/CoreWCF
Lifecycle Timeline
2DescriptionCVE.org
Impact
The relying application is given a ClaimsPrincipal for a subject whose authority over the assertion the sender never proved. There are two distinct exploit shapes:
- Holder-of-key downgrade. An attacker who obtains a holder-of-key SAML assertion that was issued without KeyInfo (issuer bug, custom STS shape, or assertion captured from an interaction where KeyInfo was elided) can present it to the service and be authenticated as the assertion’s subject without producing the proof key the assertion’s confirmation method would normally require. The service’s reliance on holder-of-key for sensitive actions is bypassed.
- Custom-method bypass. An attacker who can obtain or arrange the issuance of a SAML assertion bearing a non-standard confirmation method URI (a permissive STS that accepts arbitrary method strings, an experimental custom IDP, or an attacker-side construction that the issuer signs without validating the method field) can present the assertion and be authenticated. Per-method policies that an application or a binding-level policy expects the framework to enforce are silently bypassed.
Preconditions
The service is configured to accept SAML 1.1 tokens via federation. Typical bindings are WS2007FederationHttpBinding and WSFederationHttpBinding, or any custom binding using IssuedSecurityTokenParameters with a SAML 1.1 token type. The attacker has obtained at least one signed SAML 1.1 assertion of a shape that triggers the bypass.
Patches
Fixed in CoreWCF v1.8.1 and v1.9.1
Workarounds
To exploit this issue, it's required that a trusted STS issues SAML assertions whose SubjectConfirmationMethod is not one of the SAML 1.1 trio, or is willing to issue holder-of-key assertions without KeyInfo. If no trusted STS is willing to issue SAML assertions meeting either of these criteria, then a service isn't vulnerable.
AnalysisAI
Authentication bypass in CoreWCF (SAML 1.1 federation) allows remote attackers to be authenticated as the subject of a signed SAML assertion without proving holder-of-key possession or without a standard SubjectConfirmation method being enforced. Affects CoreWCF.Primitives versions before 1.8.1 and 1.9.0 through 1.9.1 when services consume SAML 1.1 tokens via WS2007FederationHttpBinding, WSFederationHttpBinding, or custom IssuedSecurityTokenParameters bindings. No public exploit identified at time of analysis, but the bypass directly defeats per-method authorization policies that federated services rely on.
Technical ContextAI
CoreWCF is the open-source .NET (Core) port of Windows Communication Foundation, providing federation bindings that consume SAML-issued tokens from a Security Token Service (STS). SAML 1.1 SubjectConfirmation methods (the standard 'trio': sender-vouches, holder-of-key, bearer) signal the proof model the relying party must enforce - holder-of-key in particular requires the presenter to demonstrate possession of a key bound to the assertion via a KeyInfo element. The CWE-287 (Improper Authentication) root cause here is two-fold: CoreWCF accepts holder-of-key assertions that lack KeyInfo without requiring a proof-of-possession step, and it accepts non-standard custom confirmation-method URIs without enforcing the per-method policy a relying application would expect. The affected package is nuget/CoreWCF.Primitives (CPE pkg:nuget/corewcf.primitives), the library that implements the token validation logic for these federation bindings.
RemediationAI
Vendor-released patch: upgrade CoreWCF.Primitives to 1.8.1 on the 1.8.x line or to 1.9.1 on the 1.9.x line, per GHSA-48pq-2xq3-c2m4 (https://github.com/CoreWCF/CoreWCF/security/advisories/GHSA-48pq-2xq3-c2m4). If immediate upgrade is not possible, the vendor-supplied compensating control is to constrain every trusted STS so that it issues only SAML 1.1 assertions whose SubjectConfirmationMethod is one of the standard trio (sender-vouches, holder-of-key, bearer) and always populates KeyInfo for holder-of-key assertions - verify this with each federation partner, since the vulnerability disappears if no trusted issuer can produce a triggering assertion shape. As an additional defense, audit relying-party configuration to remove federation bindings that accept SAML 1.1 tokens where they are not strictly required, accepting that this will break any client whose token format you disable.
Same weakness CWE-287 – Improper Authentication
View allSame technique Authentication Bypass
View allShare
External POC / Exploit Code
Leaving vuln.today
GHSA-48pq-2xq3-c2m4