GHSA-vxg7-f2jj-jmqm

Suggest an improvement
Source
https://github.com/advisories/GHSA-vxg7-f2jj-jmqm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-vxg7-f2jj-jmqm/GHSA-vxg7-f2jj-jmqm.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vxg7-f2jj-jmqm
Aliases
  • CVE-2026-76819
Published
2026-09-22T20:37:13Z
Modified
2026-09-22T21:00:10Z
Severity
  • 8.6 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Nuclei: Arbitrary Code Execution via Goja JavaScript Engine Vulnerability
Details

A vulnerability in the Goja JavaScript engine used by Nuclei's javascript: protocol allows arbitrary native code execution on the scanner host when running untrusted JavaScript templates.

Affected Component

The issue is in the Goja JavaScript runtime embedded in Nuclei's JavaScript protocol (pkg/js/). An out-of-bounds heap write in the engine can be exploited to achieve native code execution during template evaluation.

Description

Nuclei uses the Goja engine to execute javascript: protocol templates. A memory safety vulnerability in Goja allows attacker-controlled JavaScript to corrupt heap memory and execute arbitrary native code on the host running Nuclei.

Because javascript: templates execute without the -code flag and unsigned JavaScript templates run by default, a malicious template from an untrusted source can trigger code execution during a normal scan. The vulnerability could also be reached through a template's init section, which runs during template initialization before other security checks complete.

[!NOTE] JavaScript templates do not require the -code flag and are not subject to the code-template signing requirement on affected versions. Nuclei v3.11.0 adds a separate signing requirement for JavaScript templates as additional defense in depth.

Affected Users

  • CLI users running untrusted or third-party javascript: templates.
  • SDK users who integrate Nuclei into platforms where end users can supply JavaScript templates.

Patches

Mitigation

Upgrade to Nuclei v3.10.0 or later. For additional protection, upgrade to v3.11.0 where JavaScript templates also require valid signatures.

In the meantime, avoid running JavaScript templates from unverified sources.

Workarounds

If upgrading is not an option, do not run untrusted JavaScript templates. There is no configuration flag that mitigates native code execution on affected versions.

Acknowledgments

Thanks to Dylan Pindur (@dpindur) and Adam Kues (@akues-an) of the Assetnote security research team for reporting this issue through responsible disclosure via security@projectdiscovery.io.

Database specific
{
    "cwe_ids":  [
        "CWE-787",
        "CWE-94"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-09-22T20:37:13Z",
    "nvd_published_at":  "2026-09-22T17:17:25Z",
    "severity":  "HIGH"
}
References

Affected packages

Go / github.com/projectdiscovery/nuclei/v3

Package

Name
github.com/projectdiscovery/nuclei/v3
View open source insights on deps.dev
Purl
pkg:golang/github.com/projectdiscovery/nuclei/v3

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.10.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-vxg7-f2jj-jmqm/GHSA-vxg7-f2jj-jmqm.json"