{"answers":{"affected":"5 open source packages ship an affected version, including github.com/projectdiscovery/nuclei/v3, github.com/projectdiscovery/nuclei and github.com/projectdiscovery/nuclei/v2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41646 exists.","fix":"Upgrade github.com/projectdiscovery/nuclei/v3 to 3.8.0 or later.","what":"CVE-2026-41646 is a medium-severity path traversal vulnerability in projectdiscovery nuclei, published on 8 May 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-41646 and fix it if it is affected.\n\nWhat it is: CVE-2026-41646 is a medium-severity path traversal vulnerability in projectdiscovery nuclei, published on 8 May 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41646 exists.\n\nAffected packages and fixed versions:\n- github.com/projectdiscovery/nuclei/v3 (Go): affected from 3.0.0; fixed in 3.8.0\n- github.com/projectdiscovery/nuclei/v3 (Go): affected from 3.0.0; fixed in 3.8.0\n- github.com/projectdiscovery/nuclei/v3 (Go): affected from 3.0.0; fixed in 3.8.0\n- github.com/projectdiscovery/nuclei (Go): affected all versions; no fix listed\n- github.com/projectdiscovery/nuclei/v2 (Go): affected all versions; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-41646/ (Markdown: https://insights.sbomify.com/CVE-2026-41646/index.md)","id":"CVE-2026-41646","markdown":"https://insights.sbomify.com/CVE-2026-41646/index.md","name":"CVE-2026-41646","record":{"aliases":["GHSA-29rg-wmcw-hpf4","GO-2026-4965"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Vulnerability scanner","requires_auth":"none","summary":"Attackers can read local JavaScript and JSON files via the require() function in Nuclei templates, bypassing default restrictions.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"nuclei","vendor":"projectdiscovery"}],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"}],"description":"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Nuclei: Local File Read via require() Module Loader Bypass","id":"CVE-2026-41646","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":5,"n_references":3,"next":{"headline":"Incus: Nil-Pointer Dereference via S3 Bucket Import","id":"CVE-2026-41647"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/projectdiscovery/nuclei","purl":"pkg:golang/github.com/projectdiscovery/nuclei","source":"GO-2026-4965"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/projectdiscovery/nuclei/v2","purl":"pkg:golang/github.com/projectdiscovery/nuclei/v2","source":"GO-2026-4965"},{"ecosystem":"Go","fixed":["3.8.0"],"introduced":["3.0.0"],"last_affected":[],"package":"github.com/projectdiscovery/nuclei/v3","purl":null,"source":"GHSA-29rg-wmcw-hpf4"},{"ecosystem":"Go","fixed":["3.8.0"],"introduced":["3.0.0"],"last_affected":[],"package":"github.com/projectdiscovery/nuclei/v3","purl":"pkg:golang/github.com/projectdiscovery/nuclei/v3","source":"GHSA-29rg-wmcw-hpf4"},{"ecosystem":"Go","fixed":["3.8.0"],"introduced":["3.0.0"],"last_affected":[],"package":"github.com/projectdiscovery/nuclei/v3","purl":"pkg:golang/github.com/projectdiscovery/nuclei/v3","source":"GO-2026-4965"}],"prev":{"headline":"Nuclei: Environment variable disclosure via Response-Derived DSL Expressions","id":"CVE-2026-41645"},"products":["nuclei"],"published":"2026-05-08","related":[{"cvss_score":7.5,"headline":"Nuclei Path Traversal vulnerability","id":"CVE-2023-37896","kev_date_added":null,"published":"2023-08-04"},{"cvss_score":7.4,"headline":"Nuclei Template Signature Verification Bypass","id":"CVE-2024-43405","kev_date_added":null,"published":"2024-09-04"},{"cvss_score":7.4,"headline":"Unsigned code template execution through workflows in projectdiscovery/nuclei","id":"CVE-2024-27920","kev_date_added":null,"published":"2024-03-15"},{"cvss_score":5.3,"headline":"Nuclei: Environment variable disclosure via Response-Derived DSL Expressions","id":"CVE-2026-41645","kev_date_added":null,"published":"2026-05-08"},{"cvss_score":4,"headline":"Code injection in Nuclei","id":"CVE-2026-41282","kev_date_added":null,"published":"2026-04-20"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-08","vendors":["projectdiscovery"]},"summary":"Attackers can read local JavaScript and JSON files via the require() function in Nuclei templates, bypassing default restrictions.","url":"https://insights.sbomify.com/CVE-2026-41646/"}