Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Affecting @keystone-6/core package, versions >=3.0.0 <3.0.2


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.29% (69th 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 IDSNYK-JS-KEYSTONE6CORE-3099227
  • published3 Nov 2022
  • disclosed3 Nov 2022
  • creditAustin Burdine

Introduced: 3 Nov 2022

CVE-2022-39382  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade @keystone-6/core to version 3.0.2 or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'). This can occur when users are using NODE_ENV in their own code (not dependencies) to trigger security-sensitive functionality in a production build, causing NODE_ENV to be inlined to development for user code.

Workaround

Users who are unable to upgrade to the fixed version should remove any code that uses NODE_ENV in a way that may reasonably impact the application security.

CVSS Base Scores

version 3.1