Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

MAL-2026-10108: Malicious code in url-func-registry (npm)

0
Critical
Published: 07/09/2026 (07/09/2026, 23:04:55 UTC)
Source: GCVE Database
Product: url-func-registry

Description

The npm package url-func-registry version 1.0.4 contains malicious code that executes arbitrary JavaScript fetched from a publicly-editable JSON hosting service. This occurs through a factory function 'createJsonService' registered as 'JsonS' that downloads code from an author-controlled pastebin and executes it with full code execution privileges in the consumer environment. The malicious payload can be changed at any time without republishing the package. The backdoor activates only when the factory is invoked or enumerated by downstream consumers.

Affected software

npmghsa
url-func-registry
Affected versions
=1.0.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/10/2026, 09:35:11 UTC

Technical Analysis

[email protected] exposes a factory function 'createJsonService' under the 'JsonS' key in its public API, which fetches JSON data from https://www.jsonkeeper.com/b/XVHGD, a mutable and author-controlled paste service. It extracts the 'data' property from the response and passes it to the JavaScript Function constructor with 'require' bound, enabling execution of arbitrary code hosted remotely. This design allows an attacker controlling the pastebin content to execute arbitrary code in any process that uses this factory, effectively creating a remote code execution backdoor that is not part of the documented package behavior. The malicious code only executes when the factory is invoked or enumerated, not on install or import.

Potential Impact

Any consumer process that invokes or enumerates the 'JsonS' factory in [email protected] is subject to remote code execution controlled by an attacker who can modify the payload hosted on the mutable third-party JSON hosting service. This can lead to full compromise of the affected environment. The malicious code execution is stealthy as it is triggered only on factory invocation and the payload can be changed dynamically without republishing the package.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should immediately avoid using url-func-registry version 1.0.4, especially any functionality invoking the 'JsonS' factory. Since the malicious payload is hosted externally and mutable, removing or replacing the package is the safest mitigation. Monitor vendor advisories for any official fixes or updates. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-10108
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a50ba4168715ace4357e314

Added to database: 07/10/2026, 09:24:17 UTC

Last enriched: 07/10/2026, 09:35:11 UTC

Last updated: 07/10/2026, 09:35:11 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses