Skip to content
CVE-2026-96760

Authlib JWS JSON Empty Signature Validation Bypass (CVE-2026-96760)

Detects potential exploitation of CVE-2026-96760, a signature-verification bypass in Authlib (<= 1.8.0) where JWS tokens in JSON serialization format are accepted with empty signature values during deserialization. An attacker can forge a JWS JSON token with an empty 'signature' (or 'protected'/'header' with no valid signature) and have it pass validation, enabling authentication bypass and privilege escalation (CWE-347, Improper Verification of Cryptographic Signature). This detection surfaces vulnerable Authlib package versions in the environment, anomalous JWS JSON deserialization activity, and authentication events that succeed with empty-signature tokens.

Vulnerability Intelligence

Theoretical

What is CVE-2026-96760 Authlib JWS JSON Empty Signature Validation Bypass (CVE-2026-96760)?

Authlib JWS JSON Empty Signature Validation Bypass (CVE-2026-96760) (CVE-2026-96760) maps to the Initial Access and Privilege Escalation and Credential Access tactics — the adversary is trying to get into your network in MITRE ATT&CK.

This page provides production-ready detection logic for Authlib JWS JSON Empty Signature Validation Bypass (CVE-2026-96760), covering the data sources and telemetry it touches: Microsoft Defender for Endpoint TVM, IIS Logs. The queries below are rated high severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.

MITRE ATT&CK

Tactic
Initial Access Privilege Escalation Credential Access
Microsoft Sentinel / Defender
kusto
// df00tech DF00-122fc3452b · https://df00tech.com/detections/CVE-2026-96760 · licence: https://df00tech.com/detections/licence
// Detect vulnerable Authlib package inventory and anomalous JWS JSON auth events
let VulnerablePackages = DeviceTvmSoftwareInventory
| where SoftwareVendor =~ "pip" or SoftwareName has "authlib"
| where SoftwareName has "authlib"
| extend ver = parse_version(SoftwareVersion)
| where ver <= parse_version("1.8.0")
| project Timestamp=now(), DeviceName, SoftwareName, SoftwareVersion, Finding="Vulnerable Authlib (<=1.8.0) installed";
let SuspiciousAuth = union isfuzzy=true
(W3CIISLog
| where csUriStem has_any ("/oauth", "/token", "/jwt", "/authorize", "/callback")
| where csUriQuery has "signature" or csReferer has "signatures"
| project Timestamp, DeviceName=Computer, cIP, csUriStem, csUriQuery, Finding="Possible JWS JSON empty-signature token at OAuth/JWT endpoint");
VulnerablePackages
| union SuspiciousAuth
| sort by Timestamp desc

Identifies hosts running vulnerable Authlib versions (<=1.8.0) via Defender TVM software inventory and flags web requests to OAuth/JWT endpoints carrying JWS JSON serialization indicators that may contain forged empty signatures.

high severity medium confidence

Data Sources

Microsoft Defender for Endpoint TVM IIS Logs

Required Tables

DeviceTvmSoftwareInventory W3CIISLog

False Positives

  • Legitimate OAuth/OIDC flows that include the literal string 'signature' in query parameters or callback URLs
  • Security scanners and penetration-testing tools probing JWT endpoints
  • Vulnerability-management inventory of Authlib on hosts that have the fix backported but report an old version string

Query fingerprint DF00-122fc3452b · licence

Sigma logsource & community rules

The detection logic for Authlib JWS JSON Empty Signature Validation Bypass (CVE-2026-96760) (CVE-2026-96760) above is provided in a vendor-neutral form so you can deploy it on any SIEM. The same logic is shipped here as native KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the following logsource:

logsource:
  product: windows

Browse the community-maintained Sigma rules for this technique:


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 Enumerate vulnerable Authlib version (Linux)

    Expected signal: Process execution of pip/python with authlib arguments; package inventory change to authlib 1.8.0.

  2. Test 2 Forge JWS JSON token with empty signature (Linux, lab)

    Expected signal: Python process using authlib.jose with a JWS JSON token containing an empty signature field.

  3. Test 3 Submit empty-signature JWS JSON to auth endpoint (Linux, lab)

    Expected signal: Outbound/inbound HTTP POST to /oauth/token containing JWS JSON fields with an empty signature value.


Response Playbook

Triage

  1. Confirm the affected service's Authlib version by running `pip show authlib` (or inspecting the application's lockfile/requirements) on the host; anything <= 1.8.0 is vulnerable.
  2. Determine whether the application uses JWS JSON serialization deserialization (calls to `JsonWebSignature.deserialize_json` / `jws.deserialize`) on attacker-controllable input such as tokens, API payloads, or callbacks.
  3. Review authentication/authorization logs around the alert for tokens that validated successfully but correspond to unexpected or privileged identities.
  4. Inspect the flagged requests for JWS JSON structures with empty or missing 'signature' values in the 'signatures' array or a single empty 'signature' field.

Containment

  1. Upgrade Authlib to 1.9.0 or later across all affected services and redeploy.
  2. As an interim mitigation, reject JWS JSON serialization inputs with empty/missing signatures at a WAF or application gateway, or disable JSON serialization acceptance if not required.
  3. Invalidate and rotate any sessions, tokens, or credentials that may have been issued or accepted via forged empty-signature tokens.

Evidence Collection

  1. Capture the raw JWS JSON payloads from the flagged requests, including full headers and body, for signature-field analysis.
  2. Preserve application and web server logs, the installed Authlib package metadata (`pip show`/`pip freeze`), and the deployed source revision.
  3. Export authentication audit records showing which principals authenticated during the suspected exploitation window.

Escalation Criteria

  • ! Escalate to incident response if any token with an empty signature was accepted and resulted in an authenticated session or privileged action.
  • ! Escalate if evidence shows account takeover, privilege escalation, or access to protected resources via forged tokens.
  • ! Escalate if the vulnerable Authlib version is confirmed on an internet-facing service accepting JWS JSON input from untrusted clients.

Investigation Guide

Forensic Artifacts

  • > Installed Authlib package version metadata (pip freeze / site-packages dist-info)
  • > Web and application logs containing JWS JSON payloads with empty signature fields
  • > Authentication/session store records for sessions created during the suspected window

Tuning Guidance

Baseline legitimate OAuth/OIDC traffic to your JWT endpoints before enabling URL-string-based detections, since 'signature' and 'protected' appear in many valid flows. Prefer the package-inventory components (high precision) for alerting and treat the network/URL heuristics as hunting leads. If your applications never use JWS JSON serialization, any JWS JSON input is anomalous and can be alerted on aggressively. Suppress known scanner source IPs and internal health checks.


Hunting Queries

Enumerate all hosts with a vulnerable Authlib version (<=1.8.0) to scope exposure.

Hunting — KQL
kql
// df00tech DF00-122fc3452b · https://df00tech.com/detections/CVE-2026-96760 · licence: https://df00tech.com/detections/licence
DeviceTvmSoftwareInventory | where SoftwareName has "authlib" | extend ver=parse_version(SoftwareVersion) | where ver <= parse_version("1.8.0") | project DeviceName, SoftwareName, SoftwareVersion
Hunting — SPL
spl
``` df00tech DF00-122fc3452b · https://df00tech.com/detections/CVE-2026-96760 · licence: https://df00tech.com/detections/licence ```
index=os sourcetype="package:inventory" package="authlib" | rex field=version "(?<maj>\d+)\.(?<min>\d+)\.(?<pat>\d+)" | eval verint=(maj*10000)+(min*100)+pat | where verint<=10800 | table host version

Atomic Red Team Tests

Test 1 Enumerate vulnerable Authlib version (Linux)
linux

Checks whether the installed Authlib version is <= 1.8.0 and therefore vulnerable to CVE-2026-96760.

Command

bash
pip install 'authlib==1.8.0' >/dev/null 2>&1; python3 -c "import authlib; print('authlib', authlib.__version__)"

Cleanup

bash
pip install 'authlib==1.9.0' >/dev/null 2>&1 || pip uninstall -y authlib

Expected Telemetry

Process execution of pip/python with authlib arguments; package inventory change to authlib 1.8.0.

Expected Detection

Package-inventory components of the KQL/SPL/CrowdStrike queries flag authlib <=1.8.0 on the host.

Test 2 Forge JWS JSON token with empty signature (Linux, lab)
linux

Constructs a JWS JSON serialization token with an empty signature and attempts deserialization with vulnerable Authlib to demonstrate the validation bypass.

Command

bash
python3 - <<'EOF'
import json, base64
from authlib.jose import JsonWebSignature
jws = JsonWebSignature()
protected = base64.urlsafe_b64encode(b'{\"alg\":\"none\"}').rstrip(b'=').decode()
payload = base64.urlsafe_b64encode(b'{\"sub\":\"admin\"}').rstrip(b'=').decode()
token = json.dumps({\"protected\": protected, \"payload\": payload, \"signature\": \"\"})
print(\"forged JWS JSON token:\", token)
EOF

Cleanup

bash
echo 'no artifacts to remove'

Expected Telemetry

Python process using authlib.jose with a JWS JSON token containing an empty signature field.

Expected Detection

Process/CommandLine detections (CrowdStrike CQL, Elastic EQL first stage) flag Python invoking authlib/jws.

Test 3 Submit empty-signature JWS JSON to auth endpoint (Linux, lab)
linux

Sends a forged JWS JSON token with an empty signature to a local OAuth/JWT endpoint to simulate the network-side exploitation attempt.

Command

bash
curl -s -X POST 'http://127.0.0.1:8000/oauth/token' -H 'Content-Type: application/json' -d '{"protected":"eyJhbGciOiJub25lIn0","payload":"eyJzdWIiOiJhZG1pbiJ9","signature":""}' -G --data-urlencode 'signature='

Cleanup

bash
echo 'no artifacts to remove'

Expected Telemetry

Outbound/inbound HTTP POST to /oauth/token containing JWS JSON fields with an empty signature value.

Expected Detection

Network/URL-based detections (KQL IIS, SPL web, QRadar AQL, Sumo, Chronicle YARA-L) flag the request to the OAuth/JWT endpoint with signature fields.

Related Detections

Blog posts about this detection

Browse by tactic

Full ATT&CK matrix Search all detections