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.
{
"cna_assigner": "mitre",
"cwe_ids": [
"CWE-670"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40960.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.15.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "0faf529bc4b89e70a275ed1162047815118f2413"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "827fd4cf7f989482b2dad381fa4afd642ea73e8c"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40960.json"
[
{
"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/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-5d296ad3",
"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": {
"line_hashes": [
"14280754021638532828436902484908948154",
"243600868345419908776141424440201800148",
"321973952621854196937322505461845449421",
"244354723016717733361669597187075839787"
],
"threshold": 0.9
},
"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"
}
},
{
"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",
"target": {
"file": "src/script/cpp_api/s_security.cpp"
}
}
]
"2026-10-28T10:55:11Z"