{"id":"MAL-2026-10108","revision":"44191d357ae1492fb53c0a4642337d6c","records":[{"revision":"44191d357ae1492fb53c0a4642337d6c","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10108","aliases":[],"title":"Malicious code in url-func-registry (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3a4d96efb2897a3908596981acd2c0666cfd7445def91a32e02e2f95c9475ecf)\nurl-func-registry@1.0.4 exposes a factory `createJsonService` (registered under key 'JsonS' in the public `getFunc` API) that fetches https://www.jsonkeeper.com/b/XVHGD — an anonymous, publicly-editable, author-mutable JSON hosting service — reads the `data` property from the response, and passes it to `new Function.constructor('require', data.data)` which is then invoked with the real `require` bound. This compiles and executes arbitrary JavaScript hosted at an author-controlled slug on a third-party paste service, giving whoever controls that slug full code execution in any consumer process that reaches the 'JsonS' factory. The package presents itself as a URL/singleton registry; remote code execution is not part of the documented behavior, and the `createJsonService` / 'JsonS' naming frames the sink as a benign JSON fetch. Because the payload is served from a mutable pastebin, the executed content can be swapped at any time without any package republish. The backdoor fires only when a consumer invokes the factory (not at install/import), but any downstream integration that iterates or looks up the registered factories will trigger it.\n","state":0,"publishedAt":"2026-07-09T23:04:55+00:00","modifiedAt":"2026-07-09T23:47:00.1960112+00:00","affected":[{"ecosystem":"npm","name":"url-func-registry","ranges":[],"versions":["1.0.4"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/url-func-registry/v/1.0.4"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10108","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10108","identifiers":["MAL-2026-10108"]},"retained":false,"historicalAffected":[]}],"coverage":[]}