{"id":"MAL-2026-12357","revision":"e52d62c0ca35433ea8e1963281fe82f2","records":[{"revision":"e52d62c0ca35433ea8e1963281fe82f2","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12357","aliases":[],"title":"Malicious code in cors-security (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b1cff2c95bb175e36d5cb7a6e4880ed0f8816cbfb1dc7acef5d8173cf2cc40bb)\nThe CommonJS entry point of cors-security@1.0.1 exposes a getPlugin() API that issues an HTTPS GET to the hardcoded host workconfig.vercel.app and passes the response body directly to new Function('require', data)(require), running attacker-controlled JavaScript inside the consumer's Node process with access to require. TLS certificate verification is disabled on that request (rejectUnauthorized: false). The remote-loader code is present only in the CJS entry and absent from the ESM variant, and does not relate to the package's advertised SVG-utility purpose (name svgcraft, description \"Professional zero-dependency SVG utilities\"). Any consumer that requires the package and invokes the returned function executes whatever content the operator of workconfig.vercel.app serves at that moment.\n","state":0,"publishedAt":"2026-08-05T12:57:59+00:00","modifiedAt":"2026-08-05T13:35:15.1640576+00:00","affected":[{"ecosystem":"npm","name":"cors-security","ranges":[],"versions":["1.0.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/cors-security/v/1.0.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12357","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12357","identifiers":["MAL-2026-12357"]},"retained":false,"historicalAffected":[]}],"coverage":[]}