twzrd-x402-gate@0.9.16
Security fixes: payment-verdict integrity issues fixed through 0.11.4 (see the 0.11.2, 0.11.3 and 0.11.4 changelogs). Upgrade to twzrd-x402-gate@0.11.4.
Released identity 0.9.16. Buyer-side x402 trust gate: free preflight before signing USDC to a merchant. On Solana mainnet and Base mainnet (eip155:8453), a missing payTo is not approved, a buyer preflight outage does not sign unless TWZRD_FAIL_OPEN=true,
AI Security Review
scanned 5d ago · by lpm-firewall-aiThis version has a documented payment TOCTOU risk in its safe-fetch CLI: the challenge scored by the gate may differ from the one AgentCash signs. The behavior requires an explicit CLI invocation, but the mismatch can bypass the preflight's recipient or amount check, so warn users rather than block the package as malicious.
Decision evidence
public snapshot- The safe-fetch documentation says it preflights challenge A, then AgentCash makes a second request and may sign a different challenge B without rechecking it.
- After the preflight allows payment, safe-fetch invokes AgentCash against the supplied URL, creating the second-request payment path.
- The package has no install, preinstall, or postinstall hook; its only lifecycle script is prepublishOnly release verification.
- The TOCTOU limitation is explicitly documented, and the CLI is described as an advisory precheck rather than a secure payment firewall.
- The payment path is triggered by a user running the safe-fetch CLI; dry-run and preflight-only modes stop before payment.
Source & flagged code
5 flaggedPackage source references child process execution.
bin/twzrd-safe-fetch.jsView on unpkg · L5Package source references dynamic require/import behavior.
bin/twzrd-gate-eval-refuse.jsView on unpkg · L28Findings
Affected versions and remediation
This report applies to twzrd-x402-gate@0.9.16.
See all versions of twzrd-x402-gate for other recorded verdicts.
- Review the evidence and your use of twzrd-x402-gate@0.9.16 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.