CVE-2022-39382
CVE-2022-39382 is a critical-severity vulnerability in Keystonejs Keystone with a CVSS 3.x base score of 9.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-74.
Key facts
- Severity: Critical (CVSS 3.x base score 9.8)
- EPSS exploit prediction: 1% (71st percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-74
- Affected product: Keystonejs Keystone
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2022-39382?
- 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.
- How severe is CVE-2022-39382?
- CVE-2022-39382 has a CVSS 3.x base score of 9.8, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2022-39382 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (71st percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2022-39382?
- CVE-2022-39382 primarily affects Keystonejs Keystone. In total, 2 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2022-39382?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- When was CVE-2022-39382 published?
- CVE-2022-39382 was published on 2022-11-03 and last updated on 2026-06-17.
References
- https://github.com/keystonejs/keystone/pull/8031/
- https://github.com/keystonejs/keystone/pull/8063
- https://github.com/keystonejs/keystone/security/advisories/GHSA-25mx-2mxm-6343
Affected products (2)
- cpe:2.3:a:keystonejs:keystone:3.0.0:*:*:*:*:node.js:*:*
- cpe:2.3:a:keystonejs:keystone:3.0.1:*:*:*:*:node.js:*:*
More vulnerabilities in Keystonejs Keystone
- CVE-2022-29354 — Critical (CVSS 9.8): An arbitrary file upload vulnerability in the file upload module of Keystone v4.2.1 allows attackers to execute…
- CVE-2022-39322 — Critical (CVSS 9.1): @keystone-6/core is a core package for Keystone 6, a content management system for Node.js. Starting with version 2.2.0…
- CVE-2017-16570 — High (CVSS 8.8): KeystoneJS before 4.0.0-beta.7 allows application-wide CSRF bypass by removing the CSRF parameter and value, aka…
- CVE-2017-15879 — High (CVSS 8.8): CSV Injection (aka Excel Macro Injection or Formula Injection) exists in admin/server/api/download.js and…
- CVE-2015-9240 — High (CVSS 7.5): Due to a bug in the the default sign in functionality in the keystone node module before 0.3.16, incomplete email…
- CVE-2023-34247 — Medium (CVSS 6.1): Keystone is a content management system for Node.JS. There is an open redirect in the `@keystone-6/auth` package…
All CVEs affecting Keystonejs Keystone →
Other CWE-74 (Improper Neutralization of Special Elements (Injection)) vulnerabilities
- CVE-2026-25586 — Critical (CVSS 10.0): SandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, a sandbox escape is possible by shadowing hasOwnProperty…
- CVE-2026-25520 — Critical (CVSS 10.0): SandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, The return values of functions aren't wrapped.…
- CVE-2025-20265 — Critical (CVSS 10.0): A vulnerability in the RADIUS subsystem implementation of Cisco Secure Firewall Management Center (FMC) Software could…
- CVE-2025-20337 — Critical (CVSS 10.0): A vulnerability in a specific API of Cisco ISE and Cisco ISE-PIC could allow an unauthenticated, remote attacker to…
- CVE-2025-20281 — Critical (CVSS 10.0): A vulnerability in a specific API of Cisco ISE and Cisco ISE-PIC could allow an unauthenticated, remote attacker to…
- CVE-2024-42472 — Critical (CVSS 10.0): Flatpak is a Linux application sandboxing and distribution framework. Prior to versions 1.14.0 and 1.15.10, a malicious…
Browse all CWE-74 (Improper Neutralization of Special Elements (Injection)) vulnerabilities →