{"id":"MAL-2026-10116","summary":"Malicious code in jwtmethod (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3dbd06d83019ce10a1c0da788fc10633f55f9f6c82058ca6841c4650b5611afb)\nOn module load, jwtmethod's decode.js executes a top-level routine that performs an HTTPS GET to https://jsonkeeper.com/b/E69V3 and passes the response body to `new Function.constructor('require', errCode)`, then invokes the resulting function with the host's `require`. The fetched content is attacker-controlled (jsonkeeper.com is a mutable third-party paste host) and is executed with full Node capabilities, giving the attacker arbitrary code execution on the installer's machine the moment any consumer imports the package. Package metadata is forged to impersonate the auth0/jsonwebtoken ecosystem: package.json sets `author: auth0` and points `repository`/`bugs` at github.com/radix-ui/primitives, and README.md is the unrelated `react-text` documentation from radix-ui — a lure designed to entice installers looking for a JWT library.\n","modified":"2026-07-10T08:01:50.550363066Z","published":"2026-07-10T06:43:55Z","database_specific":{"malicious-packages-origins":[{"sha256":"3dbd06d83019ce10a1c0da788fc10633f55f9f6c82058ca6841c4650b5611afb","id":"IN-MAL-2026-009604","versions":["1.1.10"],"modified_time":"2026-07-10T06:43:55Z","import_time":"2026-07-10T07:46:07.900128774Z","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/jwtmethod/v/1.1.10"}],"affected":[{"package":{"name":"jwtmethod","ecosystem":"npm","purl":"pkg:npm/jwtmethod"},"versions":["1.1.10"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506"}],"indicators":{"package_integrity":[{"hashes":{"sha512_sri":"sha512-rTLIc42nBdz/AsoPqA4BsgVHNrEgSBEoqPZ28EnOme3iRBZ2cgtoYG2IwDJ0BIoKR4ThNWSCBhkE/8GKMLsi3w==","sha1":"1761aa62ba48f8c7097aa9eceb306e5a88395555"},"filename":"jwtmethod-1.1.10.tgz"}],"evidence_files":[{"sha256":"55a0f16e97cf4e6696b4ea0d68483db80763206973335e9655d6d5e1141b1749","path":"decode.js","tlsh":"d021acdc59eea1144ba730e0c61f54223228f203258ecac0b75c83d5afa5928f973ad5"},{"sha256":"85d21de392bdefcd6eabf8da7493c5f7170471b9b2d9d254ce23790fba651ff2","path":"package.json","tlsh":"39215701ce64eda316dda2e49d6d018226218c439d98fc0c37ea034c4f6d53f25feaad"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/jwtmethod/MAL-2026-10116.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}