CVE-2026-120440

Source
https://cve.org/CVERecord?id=CVE-2026-120440
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120440.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-120440
Aliases
  • GHSA-wm7w-r6qf-3c9w
Downstream
Published
2026-11-02T14:29:02Z
Modified
2026-11-04T07:08:05Z
Severity
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N CVSS Calculator
Summary
QuickJS-NG before 0.16.0 Memory Leak via Atomics.store
Details

QuickJS-NG before 0.16.0 contains a memory leak vulnerability in js_atomics_store() in quickjs.c that fails to free the converted value when returning a RangeError. Attackers running JavaScript can repeatedly call Atomics.store with a valueOf that detaches or shrinks the buffer to exhaust heap memory and cause denial of service.

Database specific
{
    "cna_assigner":  "VulnCheck",
    "cwe_ids":  [
        "CWE-401"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120440.json"
}
References

Affected packages

Git / github.com/quickjs-ng/quickjs

Affected ranges

Type
GIT
Repo
https://github.com/quickjs-ng/quickjs
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "fixed":  "0.16.0"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "fixed":  "62951e1bc68711d37aad986ff84ef0fe17038a7e"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v0.16.0",
            "range":  [
                {
                    "fixed":  "10b99693cdc3f37cdf05114bc2d5225de495c4a3"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

v0.*
v0.1.0
v0.10.0
v0.10.1
v0.11.0
v0.12.0
v0.12.1
v0.13.0
v0.14.0
v0.15.0
v0.15.1
v0.2.0
v0.3.0
v0.4.0
v0.4.1
v0.5.0
v0.6.0
v0.6.1
v0.7.0
v0.8.0
v0.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120440.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "26794975592830883413867835939149857455",
                "338618453226194937208091226144655337185",
                "121680045263283612703236071595196407259",
                "196630242835266097324930308906220776017",
                "26794975592830883413867835939149857455",
                "338618453226194937208091226144655337185",
                "121680045263283612703236071595196407259",
                "196630242835266097324930308906220776017"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-120440-b4b1b151",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/quickjs-ng/quickjs/commit/62951e1bc68711d37aad986ff84ef0fe17038a7e",
        "target":  {
            "file":  "quickjs.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "241832184920931283517826630047682087090",
            "length":  1300
        },
        "id":  "CVE-2026-120440-d2e177c5",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/quickjs-ng/quickjs/commit/62951e1bc68711d37aad986ff84ef0fe17038a7e",
        "target":  {
            "file":  "quickjs.c",
            "function":  "js_atomics_store"
        }
    }
]
vanir_signatures_modified
"2026-11-04T07:08:05Z"