{"id":"CVE-2026-40960","details":"Luanti 5 before 5.15.2 sometimes allows unintended access to an insecure environment. If at least one mod is listed as secure.trusted_mods or secure.http_mods, then a crafted mod can intercept the request for the insecure environment or HTTP API, and also receive access to it.","aliases":["GHSA-22c4-238c-m5j4"],"modified":"2026-10-28T10:55:11.922236031Z","published":"2026-04-16T00:54:45.935Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40960.json","cna_assigner":"mitre","cwe_ids":["CWE-670"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40960.json"},{"type":"ADVISORY","url":"https://github.com/luanti-org/luanti/security/advisories/GHSA-22c4-238c-m5j4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40960"},{"type":"FIX","url":"https://github.com/luanti-org/luanti/commit/0faf529bc4b89e70a275ed1162047815118f2413"},{"type":"FIX","url":"https://github.com/luanti-org/luanti/commit/827fd4cf7f989482b2dad381fa4afd642ea73e8c"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/luanti-org/luanti","events":[{"introduced":"f9d1810b1e763a6c0a47ff30bd83d7903d3d614f"},{"fixed":"044ab8a35be38593aefd8fdde9601cc44754f3cc"},{"fixed":"0faf529bc4b89e70a275ed1162047815118f2413"},{"fixed":"827fd4cf7f989482b2dad381fa4afd642ea73e8c"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"5.0.0"},{"fixed":"5.15.2"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"0faf529bc4b89e70a275ed1162047815118f2413"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"827fd4cf7f989482b2dad381fa4afd642ea73e8c"}]}]}}],"versions":["5.15.1","5.15.0","5.15.0-rc1","5.14.0","5.14.0-rc1","5.13.0","5.12.0","5.11.0","5.11.0-rc1","5.10.0","5.10.0-rc1","5.9.0","5.8.0","5.7.0","5.6.0","5.5.0","5.4.0","5.3.0","5.2.0","5.1.0","5.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40960.json","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/luanti-org/luanti/commit/0faf529bc4b89e70a275ed1162047815118f2413","target":{"file":"src/script/cpp_api/s_security.cpp","function":"ScriptApiSecurity::getCurrentModName"},"deprecated":false,"digest":{"function_hash":"69346852032616779633652444776571286866","length":514},"id":"CVE-2026-40960-53f87160","signature_type":"Function"},{"signature_version":"v1","source":"https://github.com/luanti-org/luanti/commit/827fd4cf7f989482b2dad381fa4afd642ea73e8c","target":{"file":"src/script/cpp_api/s_security.cpp","function":"ScriptApiSecurity::getCurrentModName"},"deprecated":false,"digest":{"function_hash":"69346852032616779633652444776571286866","length":514},"id":"CVE-2026-40960-5d296ad3","signature_type":"Function"},{"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["14280754021638532828436902484908948154","243600868345419908776141424440201800148","321973952621854196937322505461845449421","244354723016717733361669597187075839787"]},"id":"CVE-2026-40960-7e0f0277","signature_type":"Line","signature_version":"v1","source":"https://github.com/luanti-org/luanti/commit/0faf529bc4b89e70a275ed1162047815118f2413","target":{"file":"src/script/cpp_api/s_security.cpp"}},{"target":{"file":"src/script/cpp_api/s_security.cpp"},"deprecated":false,"digest":{"line_hashes":["14280754021638532828436902484908948154","243600868345419908776141424440201800148","321973952621854196937322505461845449421","244354723016717733361669597187075839787"],"threshold":0.9},"id":"CVE-2026-40960-c9dd702e","signature_type":"Line","signature_version":"v1","source":"https://github.com/luanti-org/luanti/commit/827fd4cf7f989482b2dad381fa4afd642ea73e8c"}],"vanir_signatures_modified":"2026-10-28T10:55:11Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"}]}