Vulnerabilities in pkg:npm/ses
PACKAGECVE-2025-32792 is a HIGH ses's global contour bindings leak vulnerability (CWE-497: Exposure of Sensitive System Information to an Unauthorized Control Sphere) affecting Ses libraries in the npm ecosystem. The issue involves ses's global contour bindings leak into compartment lexical scope. Remediation is available by upgrading affected packages to version 1.12.0.
pkg:npm/ses
Vulnerability advisories affecting package pkg:npm/ses. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-h9w6-f932-gq62 | CVE-2025-32792 | HIGH | ses's global contour bindings leak into Compartment lexical scope |
| GHSA-9c4h-3f7h-322r | CVE-2023-39532 | CRITICAL | SES's dynamic import and spread operator provides possible path to arbitrary exfiltration and execution |
| GHSA-whpx-q3rq-w8jc | - | LOW | Hardening of TypedArrays with non-canonical numeric property names in SES |
| GHSA-6jg8-7333-554w | - | CRITICAL | Sandbox Breakout in realms-shim |
CVE-2025-32792 at a Glance
How to Fix CVE-2025-32792
To remediate this vulnerability, upgrade all affected Ses dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install ses@1.12.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls ses
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-32792, inspect your project dependencies using npm:
npm ls ses
Analyze the terminal output to locate any version of Ses in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.12.0), your application is affected.
Note: The npm ls ses command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-497: Exposure of Sensitive System Information to an Unauthorized Control Sphere, where the product does not properly prevent sensitive system-level information from being accessed by unauthorized actors who do not have the same level of access to the underlying system as the product does. In Ses, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-32792 Affected Ses Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ses
|
npm |
< 1.12.0
|
1.12.0
|
References
Frequently Asked Questions
What is CVE-2025-32792?
Which Ses versions are affected?
What version fixes CVE-2025-32792?
Is ses affected?
What CWE is associated with CVE-2025-32792?
How can I check npm dependencies for CVE-2025-32792?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h9w6-f932-gq62",
"modified" : "2025-04-18T18:34:51Z",
"published" : "2025-04-18T15:10:05Z",
"aliases" : [ "CVE-2025-32792" ],
"summary" : "ses's global contour bindings leak into Compartment lexical scope",
"details" : "### Impact\n\nWeb pages and web extensions using `ses` and the `Compartment` API to evaluate third-party code in an isolated execution environment that have also elsewhere used `const`, `let`, and `class` bindings in the top-level scope of a `<script>` tag will have inadvertently revealed these bindings in the lexical scope of third-party code.\n\n### Patches\n\nThis compromise is addressed in `ses` version `1.12.0`. The mechanism for confining third-party code involves a `with` block and a semi-opaque scope `Proxy`. The proxy previously revealed any named property to the surrounding lexical scope if it were absent on `globalThis`, so that the third-party code would receive an informative `ReferenceError`, relying on the invalid assumption that only properties of `globalThis` are in the top-level lexical scope. The solution makes the scope proxy fully opaque. Consequently, accessing an unbound free lexical name will produce `undefined` instead of throwing `ReferenceError`.\nAssigning to an unbound free lexical name will continue to throw a `ReferenceError`.\n\n### Workarounds\n\nThis problem can be mitigated either by avoiding top-level `let`, `const`, or `class` bindings in `<script>` tags, which is an existing industry best-practice, or change these to `var` bindings to be reflected on `globalThis`, or upgrade `ses` to version `1.12.0` or greater.\n\nSome bundlers by default transform top-level `let`, `const`, and `class` bindings to `var`.\n\n### Disclosure\n\nThis vulnerability was disclosed by @mingijunggrape in the course of their studies at UNIST (Ulsan National Institute of Science and Technology) as a member of the Web Security Lab (https://websec-lab.github.io/).",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "ses"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.12.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/endojs/endo/security/advisories/GHSA-h9w6-f932-gq62"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-32792"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/endojs/endo"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-497" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-04-18T15:10:05Z",
"nvd_published_at" : "2025-04-18T16:15:23Z"
}
}