· adswds-team · Security · 2 min read
dns.resolve truncates names at NUL: Node.js CVE-2026-105482
Node.js, 21 Oct 2026: CVE-2026-105482 (high) truncates names passed to dns.resolve when they contain a NUL. It affects 26.x, 24.x, and 22.x. The fix validates null bytes in 26.12.1, 24.22.1, and 22.23.4.

The Node.js security release of 21 Oct 2026 rates CVE-2026-105482 high. The title: dns.resolve truncates names containing a NUL character. Affected lines are 26.x, 24.x, and 22.x. Fixed builds are 26.12.1, 24.22.1, and 22.23.4. The release note is James M Snell’s dns: validate resolve inputs for null bytes (reported by hasanfleyah).
In one line: the name the resolver queried can end at the first null byte.
There is no CVSS vector in the post, and no list of higher-level APIs besides the dns.resolve in the title. This article does not guess the call stack.
Published scope
| Item | Detail |
|---|---|
| ID | CVE-2026-105482 |
| Behavior | dns.resolve truncates names that contain NUL |
| Fix | Validate resolve inputs for null bytes |
| Severity | high |
| Lines | 26.x, 24.x, 22.x |
| Fixed | 26.12.1, 24.22.1, 22.23.4 |
| EOL | End-of-life versions are treated as affected and are not fixed by this release |
The same builds update c-ares to 1.34.9 on 26, 24, and 22. The security post lists that dependency update beside the CVE list. It does not say CVE-2026-105482 exists only in c-ares. Replacing a system c-ares package is not the same as running a fixed dns.resolve.
What to inventory
A name cut at NUL means the string the program intended and the string that was queried need not match. The project has not published conditions for “therefore resolution goes to a chosen host,” so this is not a ready-made poisoning recipe. The check is whether hostnames from requests, config, or the environment are passed into DNS APIs as-is.
- Postbacks, short-link expansion, and asset fetches that resolve DNS in Node: upgrade and restart;
- Allow-lists that compare an address after resolution: confirm the string was not truncated before the lookup. The list is then matching a different name;
- CI jobs that resolve internal names should use the same fixed Node as production;
- “We only call
fetch” is not an exclusion. The post does not enumerate every entry point. If you cannot exclude it, upgrade.
A static landing page does not call dns.resolve. The Node service and the build script next to it might.
Summary
CVE-2026-105482 is a high-severity DNS name truncation, fixed on 21 Oct 2026 in 26.12.1, 24.22.1, and 22.23.4. Upgrade the whole security release and restart. Same-day hostname verification is CVE-2026-106069; the Brotli decoder issue is CVE-2026-111497.
Sources: 21 Oct 2026 security releases, v26.12.1, v24.22.1, v22.23.4.



