CVE-2023-39532
SES's dynamic import and spread operator provides possible path to arbitrary exfiltration and execution
Also known as GHSA-9c4h-3f7h-322r
Mitigation
- Upgrade ses to one of 0.13.5, 0.14.5, 0.15.24, 0.16.1, 0.17.1, 0.18.7 (or later in the same release line).
Who should check
- Projects that depend on npm package ses (>= 0.13.0, < 0.13.5)
- Anyone running endojs endo >= 0.18.0, < 0.18.7; = 0.17.0; = 0.16.0; >= 0.15.0, < 0.15.24; >= 0.14.0, < 0.14.5; >= 0.13.0, < 0.13.5
Vulnerability facts
- Affected
- ses >= 0.13.0, < 0.13.5
- Fixed in
- 0.13.5, 0.14.5, 0.15.24, 0.16.1, 0.17.1, 0.18.7
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 1.54% chance of exploitation in 30 days (percentile 75, 2026-11-26)
- CWE
- CWE-20
- Modified
Description
SES is a JavaScript environment that allows safe execution of arbitrary programs in Compartments. In version 0.18.0 prior to 0.18.7, 0.17.0 prior to 0.17.1, 0.16.0 prior to 0.16.1, 0.15.0 prior to 0.15.24, 0.14.0 prior to 0.14.5, an 0.13.0 prior to 0.13.5, there is a hole in the confinement of guest applications under SES that may manifest as either the ability to exfiltrate information or execute arbitrary code depending on the configuration and implementation of the surrounding host. Guest program running inside a Compartment with as few as no endowments can gain access to the surrounding host’s dynamic import by using dynamic import after the spread operator, like `{...import(arbitraryModuleSpecifier)}`. On the web or in web extensions, a Content-Security-Policy following ordinary best practices likely mitigates both the risk of exfiltration and execution of arbitrary code, at least limiting the modules that the attacker can import to those that are already part of the application. However, without a Content-Security-Policy, dynamic import can be used to issue HTTP requests for either communication through the URL or for the execution of code reachable from that origin. Within an XS worker, an attacker can use the host’s module system to the extent that the host has been configured. This typically only allows access to module code on the host’s file system and is of limited use to an attacker. Within Node.js, the attacker gains access to Node.js’s module system. Importing the powerful builtins is not useful except insofar as there are side-effects and tempered because dynamic import returns a promise. Spreading a promise into an object renders the promises useless. However, Node.js allows importing data URLs, so this is a clear path to arbitrary execution. Versions 0.18.7, 0.17.1, 0.16.1, 0.15.24, 0.14.5, and 0.13.5 contain a patch for this issue. Some workarounds are available. On the web, providing a suitably constrained Content-Security-Policy mitigates most of the threat. With XS, building a binary that lacks the ability to load modules at runtime mitigates the entirety of the threat. That will look like an implementation of `fxFindModule` in a file like `xsPlatform.c` that calls `fxRejectModuleFile`.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-39532. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-39532.md Affected: ses >= 0.13.0, < 0.13.5 Fixed in: 0.13.5, 0.14.5, 0.15.24, 0.16.1, 0.17.1, 0.18.7 Steps: 1. Search this machine and project for ses (npm), endojs endo: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2023-39532 being exploited?
There is no confirmed exploitation: CVE-2023-39532 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.54% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-39532?
Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2023-39532?
ses >= 0.13.0, < 0.13.5.
Is there a fix for CVE-2023-39532?
Yes. Fixed in 0.13.5, 0.14.5, 0.15.24, 0.16.1, 0.17.1, 0.18.7. Upgrade ses to one of 0.13.5, 0.14.5, 0.15.24, 0.16.1, 0.17.1, 0.18.7 (or later in the same release line).
How do I check if I'm affected by CVE-2023-39532?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.