{"uid":"cap_9RnrCHrSMifFOJ7gn-C3F","slug":"writerslogic-jwt-lint-rfc-7519-8725-security-checker-ae8f037f","name":"WritersLogic JWT Lint — RFC 7519/8725 Security Checker","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/jwt-lint?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"asOf":{"type":"integer","maximum":100000000000,"minimum":0,"description":"Reference instant, epoch seconds. Required to judge exp/nbf/iat."},"token":{"type":"string","maxLength":8192,"description":"Compact JWS: header.payload.signature."},"requireExp":{"type":"boolean","description":"Default true: a token without exp fails."},"expectedAlgs":{"type":"array","items":{"type":"string","maxLength":20},"maxItems":10,"description":"Allow-list of algorithms; any other alg fails."},"leewaySeconds":{"type":"integer","maximum":3600,"minimum":0,"description":"Clock-skew allowance, default 0."},"expectedIssuer":{"type":"string","maxLength":500},"expectedAudience":{"type":"string","maxLength":500}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gKhhtXSFSdIVJ59OUZ2j2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes a compact JWT and statically lints it for security flaws (alg:none, dangerous headers, duplicate claims, timing issues) against RFC 7519 and RFC 8725 without verifying the signature","exampleAgentPrompt":"Before we trust this token, can you lint it for RFC 7519 and RFC 8725 issues — check for alg:none, dangerous headers, and whether it's expired as of right now (unix time 1718000000)? The token is eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyMTIzIiwiZXhwIjoxNzE4MDAwMTAwfQ.sig, and only RS256 or ES256 should be accepted.","exampleUseCases":[{"title":"Gate-check before agent forwards token","prompt":"An upstream service just handed my agent this JWT — eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJzdWIiOiJhZG1pbiJ9. — before I forward it to any downstream tool, lint it for alg:none, missing exp, or dangerous headers like jku or x5u. Use current time 1718005000 and require that only HS256 or RS256 are allowed."},{"title":"Validate partner-issued JWT audience and issuer","prompt":"We received a JWT from a partner: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJwYXJ0bmVyLmNvbSIsImF1ZCI6Im15YXBwIiwiZXhwIjoxNzE4MDEwMDAwfQ.sig — lint it and check whether the issuer is 'partner.com' and audience is 'myapp', as of unix time 1718005000, with a 30-second clock leeway."},{"title":"Audit JWT in security pipeline for injection risks","prompt":"Run a security lint on this JWT for kid injection shape, crit header abuse, and duplicate claims: eyJhbGciOiJIUzI1NiIsImtpZCI6Ii4uLy4uL2V0Yy9wYXNzd2QiLCJ0eXAiOiJKV1QifQ.eyJzdWIiOiJ0ZXN0In0.sig — I don't have a reference time so just flag structural issues without judging expiry."}],"resultDescription":"Returns a lint report indicating pass or fail, the specific RFC rules that fired (e.g. alg:none detected, jku header present, exp missing, token expired, issuer mismatch), and the decoded header and payload claims for inspection. A 'pass' means no lint rules fired — it does not certify the token's authenticity or signature validity.","failureModes":["Malformed JWT (fewer than 3 dot-separated parts) returns a decode error","Encrypted JWE tokens are unsupported and will be rejected","Without asOf, timing claims (exp, nbf, iat) are not evaluated and status is 'unknown' rather than pass/fail","If expectedAlgs is set and the token's alg is not in the list, the lint fails even if the token is otherwise well-formed","Network or payment failure returns HTTP 402 or 5xx with no lint result"],"whenToPreferThis":"Use this endpoint when an AI agent needs to quickly audit a JWT for known structural and security anti-patterns (RFC 7519/8725) before trusting, forwarding, or acting on it — especially in zero-trust agentic pipelines. Prefer this over full JWT verification libraries when you need a lightweight, stateless lint pass that catches common attack vectors (alg:none, header injection, expired tokens) without needing the signing key. Not suitable for cryptographic signature verification or JWE decryption.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:40:49.123Z","isFirstParty":false,"canonicalSlug":"writerslogic-jwt-lint-rfc-7519-8725-security-checker-ae8f037f"}