Vulnerability DatabaseGHSA-c24w-mgfj-c8p8

GHSA-c24w-mgfj-c8p8: 
JavaScript vulnerability analysis and mitigation

Impact

twzrd-x402-gate 0.23.0 and earlier

  1. A 402 whose PAYMENT-REQUIRED header is not canonical base64 skipped every check (critical). createTwzrdPolicyFetch and createTwzrdPayingFetch read the header with a strict base64 reader. When that reader refused the text (missing = padding, or unused low bits set), both treated the 402 as having nothing to check and handed it to the payer. The x402 client decodes the same text with atob, which accepts it, and signs. A seller that strips the padding from its own header was paid with no wash check, no policy check (blocklist, allowlist, per-call and cumulative ceilings, new-counterparty cap) and no ledger line. The attacker only needs to be the seller. The x402 client's own default limit still applies unless the application turned it off. The hook entry points, createBuyerFetch, createGuardedX402Fetch and twzrd.safeFetch refuse such a header and are not affected.
  2. createTwzrdPolicyFetch counted a payment only when the paid response was 2xx (high). A seller that took the signed payment and answered an error, another 402, or closed the connection was never counted against dailyCeilingUsd, a mandate's monthly ceiling or newCounterpartyCap.
  3. The policy fetch booked the costliest offer's recipient, not the one paid (medium). A seller could list a dearer decoy offer and stay under newCounterpartyCap.
  4. Payment Control compared EVM recipients case-sensitively (medium). A blocklisted Base address passed in its other letter-case spelling, and newCounterpartyCap counted each spelling separately.
  5. auth-capture offers and Solana upto offers were scored as an exact payment to payTo (medium). Both schemes can pay parties named in extra. The Base Worker approval never read the scheme.
  6. A payment the spend ledger could not record stopped counting (low). This needs a ledger that can be read and not written; it is not reachable by a seller alone. Under requireOfferBinding this release also refuses a plain token-account Create, a create not funded by the fee payer, a message version other than legacy or v0, and an offer that sets extra.memo. @twzrd1111/agent-killswitch 0.4.0 and earlier
  7. A 2xx whose usage block could not be priced settled at $0 (medium). Fractional, missing or non-numeric token counts were read as 0, so such a response never counted against the hour or day limit.
  8. A README example classified ENOTFOUND as never sent, which releases a hold after a billed call (documentation).
  9. An MPP close or topUp credential sent together with an x402 payment header skipped the budget hold (low).
  10. A spend line appended after a torn last line was never counted (low).
  11. With the ledger unwritable the proxy kept forwarding (low).
  12. Two guards that reached one ledger file through a hard link, or through a symlink made before the file existed, did not share holds (low).

Patches

  • twzrd-x402-gate 0.24.0
  • @twzrd1111/agent-killswitch 0.5.0 0.24.0 turns allows into refusals. The refusal codes are in the package CHANGELOG.md, and COMPATIBILITY.md lists what changes for a caller.

Workarounds

For item 1 of the gate: use createBuyerFetch, createGuardedX402Fetch, the client hook or twzrd.safeFetch, which refuse a header they cannot read, and keep the x402 client's default spend limit on. There is no workaround for the other items; upgrade.

Packages that depend on an affected version

twzrd-mcp-server 0.6.3 and @wzrd_sol/eliza-plugin 0.10.2 depend on twzrd-x402-gate 0.20.2. Releases of both on the patched gate will follow.


Source: NVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-133212CRITICAL9
  • JavaScript logoJavaScript
  • @fastify/reply-from
NoYesNov 20, 2026
GHSA-g84f-3cfw-8wx9HIGH7.6
  • JavaScript logoJavaScript
  • @mikro-orm/knex
NoYesNov 20, 2026
GHSA-f5wg-pmm4-pj63MEDIUM5.4
  • JavaScript logoJavaScript
  • @mikro-orm/core
NoYesNov 20, 2026
GHSA-xf7r-48j6-xg78MEDIUM5.3
  • JavaScript logoJavaScript
  • pnpm
NoNoNov 20, 2026
GHSA-m7x9-2hqg-jvqxMEDIUM4.3
  • JavaScript logoJavaScript
  • @mikro-orm/core
NoYesNov 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management