GHSA-9f3g-34x8-92jc

Suggest an improvement
Source
https://github.com/advisories/GHSA-9f3g-34x8-92jc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-9f3g-34x8-92jc/GHSA-9f3g-34x8-92jc.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9f3g-34x8-92jc
Withdrawn
2026-10-01T15:35:12Z
Published
2026-09-17T15:32:16Z
Modified
2026-10-01T15:45:06Z
Severity
  • 4.0 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N CVSS Calculator
  • 6.3 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X CVSS Calculator
Summary
Duplicate Advisory: vm2: vm.freeze()/vm.readonly() bypass via accessor descriptor
Details

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-633r-hq9m-c4ff. This link is maintained to preserve external references.

Original Description

vm2 versions from 3.9.6 before 3.11.7 fail to properly restrict access to accessor properties on frozen objects, allowing sandboxed scripts to bypass vm.freeze() and vm.readonly() protections. Attackers can use Object.getOwnPropertyDescriptor() or lookupSetter() to extract and invoke host object setters directly, mutating properties the embedder explicitly marked read-only.

Database specific
{
    "cwe_ids": [
        "CWE-471"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-10-01T15:35:12Z",
    "nvd_published_at": "2026-09-17T14:18:00Z",
    "severity": "MODERATE"
}
References

Affected packages

npm / vm2

Package

Affected ranges

Type
SEMVER
Events
Introduced
3.9.6
Last Affected
3.11.6

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-9f3g-34x8-92jc/GHSA-9f3g-34x8-92jc.json"