CVE-2026-41405: OpenClaw: MS Teams webhook parses body before JWT validation, enabling unauthenticated resource exhaustion
The OpenClaw Microsoft Teams webhook parses JSON request bodies before it validates the JWT. An unauthenticated attacker who can reach the webhook can send requests that consume server resources. Affected: openclaw up to 2026.3.28. Fixed in 2026.3.31.
Published Apr 3, 2026 · Updated May 6, 2026 · Analysis Oct 30, 2026
What an attacker can do
In extensions/msteams/src/monitor.ts the order of middleware was wrong. express.json() ran first, then the JWT middleware. The only gate before parsing was a check for a Bearer prefix on the Authorization header. Any request with a header starting Bearer made the server read and parse the body, and only then was the token checked. The old code even read serviceUrl from the parsed body to validate the token.
An attacker needs only network access to the webhook endpoint. They can send many requests with a fake Bearer header and large JSON bodies. Each one costs CPU and memory before it is rejected. Repeated at volume, this can slow or crash the process that serves the Teams channel, and anything else it hosts. There is a body size limit that returns 413, but parsing and buffering up to that limit still happens for each unauthenticated request.
No data is exposed and nothing is modified: the maintainers rate it medium, and the CVSS vector shows availability impact only.
Who is affected
The npm package openclaw, versions 2026.3.28 and earlier, when the Microsoft Teams channel extension is enabled and its webhook is reachable from the network. Check the version:
npm ls openclaw
openclaw --versionInstances without the Teams extension do not expose this endpoint.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.3.28
- Fixed in
- 2026.3.31
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.31, the first stable tag with the fix.
npm install -g [email protected]The fix commit moves the JWT middleware ahead of body parsing. It validates using only the Authorization header, and then runs express.json() with the MSTEAMS_WEBHOOK_MAX_BODY_BYTES limit. The sources list no workaround. Until you upgrade, a reverse proxy that limits request size and rate on the webhook path reduces the exposure.
How to tell if you were hit
Look at the web server and gateway logs for bursts of POST requests to the Teams webhook path from addresses that are not Microsoft's, with Authorization: Bearer headers that fail validation, or with unusually large bodies. A rise in 413 responses, high CPU or memory on the process, and restarts of the gateway are the signs. Compare request volume against normal Teams traffic.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
MS Teams webhook parses body before JWT validation, enabling unauthenticated resource exhaustion
Current Maintainer Triage
- Status: open
- Normalized severity: medium
- Assessment: v2026.3.28 still parses Teams JSON after only a Bearer-prefix gate and before real JWT validation, and the auth-before-parse fix is not yet shipped.
Affected Packages / Versions
- Package:
openclaw(npm) - Latest published npm version:
2026.3.31 - Vulnerable version range:
<=2026.3.28 - Patched versions:
>= 2026.3.31 - First stable tag containing the fix:
v2026.3.31
Fix Commit(s)
3834d47099dd13c8244ed6de8b9ea9855c553623— 2026-03-30T13:46:40+01:00
OpenClaw thanks @AntAISecurityLab for reporting.
Credited to AntAISecurityLab.
Questions
- Which OpenClaw version fixes the Teams webhook issue?
2026.3.31. Versions up to and including 2026.3.28 are affected. The fix commit is 3834d47.
- Does the attacker need credentials?
No. Requests are parsed before the JWT is validated, so any client that can reach the webhook can trigger the work. The only gate was a Bearer prefix check.
- Can it leak data or run code?
The sources describe only resource exhaustion. The CVSS vector shows high availability impact and no confidentiality or integrity impact.
References
Read for this analysis:
- https://github.com/openclaw/openclaw/security/advisories/GHSA-p464-m8x6-vhv8
- https://github.com/openclaw/openclaw/releases/tag/v2026.3.31
- https://nvd.nist.gov/vuln/detail/CVE-2026-41405
- https://www.vulncheck.com/advisories/openclaw-resource-exhaustion-via-unauthenticated-ms-teams-webhook-body-parsing
- https://github.com/advisories/GHSA-p464-m8x6-vhv8
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More OpenClaw vulnerabilities
All OpenClaw entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
