{"id":"CVE-2025-32792","aliases":["CVE-2025-32792","GHSA-h9w6-f932-gq62"],"related":[],"kind":"vulnerability","state":"published","title":"ses's global contour bindings leak into Compartment lexical scope","summary":"SES safely executes third-party JavaScript 'strict' mode programs in compartments that have no excess authority in their global scope. Prior to version 1.12.0, web 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. This issue has been patched in version 1.12.0. Workarounds for this issue involve either avoiding top-level `let`, `const`, or `class` bindings in `<script>` tags, or change these to `var` bindings to be reflected on `globalThis`.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"SES safely executes third-party JavaScript 'strict' mode programs in compartments that have no excess authority in their global scope. Prior to version 1.12.0, web 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. This issue has been patched in version 1.12.0. Workarounds for this issue involve either avoiding top-level `let`, `const`, or `class` bindings in `<script>` tags, or change these to `var` bindings to be reflected on `globalThis`.","source":"cvelist"},{"lang":"en","text":"### 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/).","format":"markdown","source":"ghsa"},{"lang":"es","text":"SES ejecuta de forma segura programas JavaScript de terceros en modo estricto en compartimentos sin exceso de autoridad en su ámbito global. Antes de la versión 1.12.0, las páginas web y extensiones que usaban `ses` y la API de Compartimiento para evaluar código de terceros en un entorno de ejecución aislado, y que también utilizaban enlaces `const`, `let` y `class` en el ámbito de nivel superior de una etiqueta `","source":"nvd"}],"published":"2025-04-18T15:10:05.000Z","modified":"2026-06-17T09:12:34.870Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-497"],"affected":[{"ranges":[{"version":"< 1.12.0","status":"affected"}],"vendor":"endojs","product":"endo","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.12.0"}],"ecosystem":"npm","package":"ses","purl":"pkg:npm/ses","source":"ghsa"}],"references":[{"url":"https://github.com/endojs/endo/security/advisories/GHSA-h9w6-f932-gq62","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32792","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/endojs/endo","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-04-21T13:27:03.438Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-32792","url":"https://www.cve.org/CVERecord?id=CVE-2025-32792","licence":"CVE Terms of Use","modified":"2025-04-21T13:28:59.847Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h9w6-f932-gq62","url":"https://github.com/advisories/GHSA-h9w6-f932-gq62","licence":"CC-BY-4.0","modified":"2025-04-18T18:34:51.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-32792","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32792","licence":"Public domain","modified":"2026-06-17T09:12:34.870Z"}],"updatedAt":"2026-11-25T22:58:56.776Z","epss":{"score":0.00587,"percentile":0.4941,"date":"2026-12-01T12:00:22.000Z"}}