Skip to content
Heist/ feed
Back to feed
Medium

Nuclei: Local File Read via require() Module Loader Bypass

Type: advisorySources: OSV

Nuclei is a vulnerability scanner built on a simple YAML-based DSL. From version 3.0.0 to before version 3.8.0, a vulnerability in Nuclei's JavaScript protocol runtime allows JavaScript templates to read local .js and .json files through the require() function, bypassing the default local file access restriction. This issue has been patched in version 3.8.0.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-41646
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 15:37 UTC · Revision 1

Source evidence

Nuclei: Local File Read via require() Module Loader Bypass

core-osv · Original source

Published 8 May 2026, 03:14 UTC

Nuclei is a vulnerability scanner built on a simple YAML-based DSL. From version 3.0.0 to before version 3.8.0, a vulnerability in Nuclei's JavaScript protocol runtime allows JavaScript templates to read local .js and .json files through the require() function, bypassing the default local file access restriction. This issue has been patched in version 3.8.0.

osv:CVE-2026-41646
Complete source record
{
  "id": "4378e9cd2c1b063cdebf7377967504436d91de0ae8a07cd86671e0767ccff7a9",
  "url": "https://osv.dev/vulnerability/CVE-2026-41646",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Nuclei: Local File Read via require() Module Loader Bypass",
    "summary": "Nuclei is a vulnerability scanner built on a simple YAML-based DSL. From version 3.0.0 to before version 3.8.0, a vulnerability in Nuclei's JavaScript protocol runtime allows JavaScript templates to read local .js and .json files through the require() function, bypassing the default local file access restriction. This issue has been patched in version 3.8.0.",
    "evidence": "osv:CVE-2026-41646",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-41646",
      "aliases": [
        "CVE-2026-41646",
        "GHSA-29rg-wmcw-hpf4",
        "GO-2026-4965"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/projectdiscovery/nuclei",
              "type": "GIT",
              "events": [
                {
                  "introduced": "990cec0de154bd3955e0c1e19951f90e06f6ea7c"
                },
                {
                  "fixed": "aa52d85991c0a9c14d044de26857d6c2959fb15d"
                },
                {
                  "fixed": "6f2ade6a9b427c284c15a43445f9c7f055e60e5d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:projectdiscovery:nuclei:*:*:*:*:*:go:*:*",
                    "range": [
                      {
                        "introduced": "3.0.0"
                      },
                      {
                        "fixed": "3.8.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6f2ade6a9b427c284c15a43445f9c7f055e60e5d"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.7.1",
            "v3.7.0",
            "v3.6.2",
            "v3.6.1",
            "v3.6.0",
            "v3.5.1",
            "v3.5.0",
            "v3.4.10",
            "v3.4.9",
            "v3.4.8",
            "v3.4.7",
            "v3.4.6",
            "v3.4.5",
            "v3.4.4",
            "v3.4.3",
            "v3.4.2",
            "v3.4.1",
            "v3.4.0",
            "v3.3.10",
            "v3.3.9",
            "v3.3.8",
            "v3.3.7",
            "v3.3.6",
            "v3.3.5",
            "v3.3.4",
            "v3.3.3",
            "v3.3.2",
            "v3.3.1",
            "v3.3.0",
            "v3.2.9",
            "v3.2.8",
            "v3.2.7",
            "v3.2.6",
            "v3.2.5",
            "v3.2.4",
            "v3.2.3",
            "v3.2.2",
            "v3.2.1",
            "v3.2.0",
            "v3.1.10",
            "v3.1.9",
            "v3.1.8",
            "v3.1.7",
            "v3.1.6",
            "v3.1.5",
            "v3.1.4",
            "v3.1.3",
            "v3.1.2",
            "v3.1.1",
            "v3.1.0",
            "v3.0.4",
            "v3.0.3",
            "v3.0.2",
            "v3.0.1",
            "v3.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41646.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.011405171Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41646.json",
        "https://github.com/projectdiscovery/nuclei/security/advisories/GHSA-29rg-wmcw-hpf4",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-41646",
        "https://github.com/projectdiscovery/nuclei/commit/6f2ade6a9b427c284c15a43445f9c7f055e60e5d",
        "https://github.com/projectdiscovery/nuclei/pull/7332"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-284"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41646.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-41646",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 496890,
  "published_at": "2026-05-08T03:14:49.908+00:00"
}