← Vulnerability feed

Vulnerability record · CVE-2022-39382 · published 3 November 2022

CVE-2022-39382: Keystonejs keystone injection vulnerability

Keystonejs · Keystone

Keystone is a headless CMS for Node.js — built with GraphQL and React.`@keystone-6/[email protected] || 3.0.1` users that use `NODE_ENV` to trigger security-sensitive functionality in their production builds are vulnerable to `NODE_ENV` being inlined to `"development"` for user code, irrespective of what your environment variables. If you do not use `NODE_ENV` in your user code to trigger security-sensitive functionality, you are not impacted by this vulnerability. Any dependencies that use `NODE_ENV` to trigger particular behaviors (optimizations, security or otherwise) should still respect your environment's configured `NODE_ENV` variable. The application's dependencies, as found in `node_modules` (including `@keystone-6/core`), are typically not compiled as part of this process, and thus should be unaffected. We have tested this assumption by verifying that `NODE_ENV=production yarn keystone start` still uses secure cookies when using `statelessSessions`. This vulnerability has been fixed in @keystone-6/[email protected], regression tests have been added for this vulnerability in #8063.

9.8 CVSS 3.1 Critical EPSS 1.6% · top 24.9% CWE-74 · Injection
9.8CVSS 3.1 base score
1.6%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
6References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

Keystone is a headless CMS for Node.js — built with GraphQL and React.`@keystone-6/[email protected] || 3.0.1` users that use `NODE_ENV` to trigger security-sensitive functionality in their production builds are vulnerable to `NODE_ENV` being inlined to `"development"` for user code, irrespective of what your environment variables. If you do not use `NODE_ENV` in your user code to trigger security-sensitive functionality, you are not impacted by this vulnerability. Any dependencies that use `NODE_ENV` to trigger particular behaviors (optimizations, security or otherwise) should still respect your environment's configured `NODE_ENV` variable. The application's dependencies, as found in `node_modules` (including `@keystone-6/core`), are typically not compiled as part of this process, and thus should be unaffected. We have tested this assumption by verifying that `NODE_ENV=production yarn keystone start` still uses secure cookies when using `statelessSessions`. This vulnerability has been fixed in @keystone-6/[email protected], regression tests have been added for this vulnerability in #8063.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-39382 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2022-39322Keystonejs keystone improper authorization vulnerability@keystone-6/core is a core package for Keystone 6, a content management system for Node.js. Starting with version 2.2.0 and prior to version 2.3.1, u…EPSS 1.2%9.8CVE-2022-29354Keystonejs keystone unrestricted file upload vulnerabilityAn arbitrary file upload vulnerability in the file upload module of Keystone v4.2.1 allows attackers to execute arbitrary code via a crafted file.EPSS 2.4%8.8CVE-2017-16570Keystonejs keystone cross-site request forgery vulnerabilityKeystoneJS before 4.0.0-beta.7 allows application-wide CSRF bypass by removing the CSRF parameter and value, aka SecureLayer7 issue number SL7_KEYJS_…EPSS 2.2%8.8CVE-2017-15879Keystonejs keystone improper input validation vulnerabilityCSV Injection (aka Excel Macro Injection or Formula Injection) exists in admin/server/api/download.js and lib/list/getCSVData.js in KeystoneJS before…EPSS 7.2%7.5CVE-2015-9240Keystonejs keystone vulnerabilityDue to a bug in the the default sign in functionality in the keystone node module before 0.3.16, incomplete email addresses could be matched. A corre…EPSS 0.89%6.1CVE-2022-0087Keystonejs keystone cross-site scripting vulnerabilitykeystone is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')EPSS 2.6%6.1CVE-2017-15878Keystonejs keystone cross-site scripting vulnerabilityA cross-site scripting (XSS) vulnerability exists in fields/types/markdown/MarkdownType.js in KeystoneJS before 4.0.0-beta.7 via the Contact Us featu…EPSS 3.4%5.3CVE-2023-40027Keystonejs keystone missing authorization vulnerabilityKeystone is an open source headless CMS for Node.js — built with GraphQL and React. When `ui.isAccessAllowed` is set as `undefined`, the `adminMeta` …EPSS 0.58%

Source: NIST National Vulnerability Database (record CVE-2022-39382), CISA KEV, FIRST EPSS (scores of 2026-09-29). This page is refreshed as NVD updates the record.