CVE-2026-41646

CVE-2026-41646 is a medium-severity security vulnerability in github.com/projectdiscovery/nuclei/v3 (go), affecting versions >= 3.0.0, < 3.8.0. It is fixed in 3.8.0.

Summary

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.

Affected Component

The issue is in the JavaScript runtime's module loading system. The goja require() function used a default host filesystem loader without routing through the allow-local-file-access check.

Description

The goja require() function in Nuclei's JavaScript protocol runtime used the default host filesystem loader, which allowed JavaScript templates to import .js and .json files from anywhere on the host filesystem, ignoring the allow-local-file-access (-lfa) option that controls file access outside the template directory.

The impact is limited to .js and .json files, as goja's module loader only resolves those extensions. That said, this is still enough to expose sensitive data stored in JSON configuration files like package.json, credential stores, or cloud configuration files sitting on the host filesystem.

Affected Users

  • CLI users running untrusted or third-party JavaScript templates.
  • SDK users who have integrated Nuclei into platforms where end-users can supply JavaScript templates, especially when relying on the default file access restriction to limit filesystem reads.

[!NOTE]
The require() module loader only resolves .js and .json files. Other file types cannot be read through this vector.

Patches

  • The vulnerability is fixed in Nuclei v3.8.0. Upgrading is strongly recommended.
  • Fix reference: #7332

Mitigation

Upgrade to Nuclei v3.8.0, where the require() registry is rebuilt per execution and file-backed module loads are routed through the same allow-local-file-access check as the rest of the filesystem operations.

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

Workarounds

If upgrading is not an option, avoid running untrusted JavaScript templates entirely. There is no flag or configuration that mitigates this on affected versions.

Acknowledgments

Nuceli thanks @AkashHamal0x01 for reporting this issue through responsible disclosure via [email protected]

Impact

CVE-2026-41646 has a CVSS score of 5.5 (Medium). The vector is requires local access, no privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (3.8.0); upgrading removes the vulnerable code path.

Affected versions

github.com/projectdiscovery/nuclei/v3 (>= 3.0.0, < 3.8.0)

Security releases

github.com/projectdiscovery/nuclei/v3 → 3.8.0 (go)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

Upgrade github.com/projectdiscovery/nuclei/v3 to 3.8.0 or later to resolve this vulnerability.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is CVE-2026-41646? CVE-2026-41646 is a medium-severity security vulnerability in github.com/projectdiscovery/nuclei/v3 (go), affecting versions >= 3.0.0, < 3.8.0. It is fixed in 3.8.0.
  2. How severe is CVE-2026-41646? CVE-2026-41646 has a CVSS score of 5.5 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of github.com/projectdiscovery/nuclei/v3 are affected by CVE-2026-41646? github.com/projectdiscovery/nuclei/v3 (go) versions >= 3.0.0, < 3.8.0 is affected.
  4. Is there a fix for CVE-2026-41646? Yes. CVE-2026-41646 is fixed in 3.8.0. Upgrade to this version or later.
  5. Is CVE-2026-41646 exploitable, and should I be worried? Whether CVE-2026-41646 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2026-41646 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2026-41646? Upgrade github.com/projectdiscovery/nuclei/v3 to 3.8.0 or later.

Other vulnerabilities in github.com/projectdiscovery/nuclei/v3

CVE-2026-41646CVE-2024-43405CVE-2024-40641CVE-2024-27920

Stop the waste.
Protect your environment with Kodem.