Arbitrary Code Injection Affecting @modern-js/utils package, versions >=2.65.2 <2.69.3


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Social Trends
Exploit Maturity
Attacked
EPSS
48.71% (98th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-MODERNJSUTILS-14723360
  • published29 Dec 2025
  • disclosed3 Dec 2025
  • creditLachlan Davidson

Introduced: 3 Dec 2025

NewCVE-2025-55182  (opens in a new tab)
CWE-502  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade @modern-js/utils to version 2.69.3 or higher.

Overview

@modern-js/utils is a progressive web framework based on React.

Affected versions of this package are vulnerable to Arbitrary Code Injection via unsafe deserialization of RSC payloads from HTTP requests to Server Function endpoints. An unauthenticated attacker can execute arbitrary code on the server by sending malicious HTTP requests.

Note:

Serverless applications and applications that do not use a framework, bundler, or bundler plugin that supports React Server Components are not affected by this vulnerability.

Modern.js ships with a bundled copy of react-server-dom-webpack@19.0.0; however, at the time of disclosure, the RSC features were in development and required an opt-in. The vulnerability is exploitable only if RSC services are explicitly enabled; without setting server.rsc: true, the RSC plugin is not loaded, and the application does not execute the vulnerable code.

CVSS Base Scores

version 4.0
version 3.1