Start with Identity
Identity CVE · OAuth / OIDC / JWT

CVE-2023-29357SharePoint JWT alg:none, impersonate any user

critical · CVSS 9.8CISA KEVActively exploited
Product: Microsoft SharePoint ServerVendor: MicrosoftCWE-347Disclosed: 2023-06-13Status: Actively exploitedProtocol deep diveNVD ↗CISA KEV ↗

What broke

SharePoint Server verified OAuth JWTs in ReadTokenCore(). If the header set alg to none, signature verification was skipped. An unauthenticated attacker minted a token as Administrator. CVSS 9.8. Patched June 2023. STAR Labs chained it with CVE-2023-24955 at Pwn2Own for RCE. CISA added 29357 to KEV in January 2024 after exploitation.

Why it matters

alg:none is a twenty-year-old JWT lesson showing up in a Microsoft product that many enterprises treat as an intranet IdP. The same class returned in SimpleHelp and WordPress OAuth SSO. If your JWT library lets the token pick the algorithm, you are on this list.

What to do

  • Patch on-prem SharePoint. If it was reachable after June 2023, review farm-admin and app-principal grants.
  • Reject alg:none in every verifier you own. See the validate a JWT recipe.
  • Do not expose SharePoint's OAuth endpoints to the internet.

After you patch

Patching an authentication bypass stops new intrusions. It does not evict anyone already inside, and that is the step most teams skip.

  • Revoke every session and refresh token, not just the passwords. A session issued before the patch is still valid after it.
  • Enumerate accounts created or modified during the exposure window, including local accounts on the appliance itself, service accounts, and API tokens.
  • Remove authentication methods you did not add. An attacker with administrative access enrols a factor so the access survives your remediation.
  • Rotate every credential the compromised system could reach: directory service accounts used for user lookup, integration keys, and anything in its configuration store. See secrets rotation.
  • Assume the device is a pivot, not a destination. Check what it could authenticate to and treat that as in scope.

Sources

Last reviewed By SWI Community TeamSuggest a correctionHow we research
Know a primary source we should add, or a patch status that has changed? Email community@startwithidentity.com. See all briefs in the identity CVE catalog, or volunteer as a CVE Analyst.
Compiled from vendor advisories, NVD, CISA KEV, and public research. CVSS figures can disagree across NVD and the CNA. Confirm affected versions against the vendor advisory before you patch. Independent, community-driven analysis. See the disclaimer.