{"id":"CVE-2025-30144","published":"2025-03-19T15:41:19Z","modified":"2025-03-19T18:29:22Z","title":"Fast-JWT Improperly Validates iss Claims","vendor":"nearform","product":"fast-jwt","tier":"tail","description":{"text":"fast-jwt provides fast JSON Web Token (JWT) implementation. Prior to 5.0.6, the fast-jwt library does not properly validate the iss claim based on the RFC 7519. The iss (issuer) claim validation within the fast-jwt library permits an array of strings as a valid iss value. This design flaw enables a potential attack where a malicious actor crafts a JWT with an iss claim structured as ['https://attacker-domain/', 'https://valid-iss']. Due to the permissive validation, the JWT will be deemed valid. Furthermore, if the application relies on external libraries like get-jwks that do not independently validate the iss claim, the attacker can leverage this vulnerability to forge a JWT that will be accepted by the victim application. Essentially, the attacker can insert their own domain into the iss array, alongside the legitimate issuer, and bypass the intended security checks. This issue is fixed in 5.0.6.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00592,"percentile":0.49234,"provenance":"source"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"},{"id":"CWE-290","name":"Authentication Bypass by Spoofing"}],"references":[{"url":"https://github.com/nearform/fast-jwt/security/advisories/GHSA-gm45-q3v2-6cf8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nearform/fast-jwt/commit/cc26b1d473f900446ad846f8f0b10eb1c0adcbdd","tags":["x_refsource_MISC"]},{"url":"https://datatracker.ietf.org/doc/html/rfc7519#page-9","tags":["x_refsource_MISC"]}],"priority":{"score":14.4,"factors":[{"name":"EPSS percentile","points":9.85},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"nearform","affectedVersions":[{"vendor":"nearform","product":"fast-jwt","versions":["< 5.0.6"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-19T18:29:09.571171Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"fast-jwt","vulnerableRanges":["<5.0.6"],"patched":["5.0.6"],"from":["GHSA-gm45-q3v2-6cf8"],"provenance":"source"}],"summary":{"text":"The fast-jwt library (by nearform) fails to validate the iss claim of JSON Web Tokens as RFC 7519 requires, because it accepts an array of strings as a valid iss value. An attacker can exploit this over the network without credentials or user interaction, using a token whose iss array includes an attacker-controlled domain alongside the legitimate issuer, though the attack is harder to carry out and is more likely to succeed when the application relies on external libraries such as get-jwks that do not independently check the iss claim.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:01Z"},"euvd":{"id":"EUVD-2025-6727","exploited":false,"provenance":"source"}}