CVE-2026-0396: 
NixOS vulnerability analysis and mitigation

Overview

CVE-2026-0396 is an HTML injection vulnerability in PowerDNS DNSdist that allows an unauthenticated remote attacker to inject malicious HTML content into the internal web dashboard by sending crafted DNS queries. It affects DNSdist versions 1.9.0 through 1.9.11 and 2.0.0 through 2.0.2, and is only exploitable when domain-based dynamic rules are enabled via DynBlockRulesGroup:setSuffixMatchRule or DynBlockRulesGroup:setSuffixMatchRuleFFI. The vulnerability was published on March 31, 2026. It carries a CVSS v3.1 base score of 3.1–4.3 (Low to Medium, depending on scoring authority), with the GitHub Advisory and ENISA scoring it at 3.1 (GitHub Advisory, DNSdist Advisory).

Technical details

The root cause is improper neutralization of script-related HTML tags in a web page (CWE-80 / CWE-79), where domain names from DNS queries are reflected unsanitized into the DNSdist internal web dashboard. When domain-based dynamic blocking rules are active, the domain portion of incoming DNS queries is processed and displayed in the dashboard without adequate output encoding, enabling HTML injection. Exploitation requires network access to the DNSdist instance to send crafted DNS queries, and a user must subsequently view the affected dashboard page (user interaction required). No public proof-of-concept code has been identified (GitHub Advisory, DNSdist Advisory).

Impact

Successful exploitation allows an attacker to inject arbitrary HTML content into the DNSdist internal web dashboard, potentially displaying deceptive or malicious content to administrators who view it. The impact is limited to low integrity loss — there is no confidentiality or availability impact, and the scope is unchanged. While the vulnerability does not enable direct code execution or data exfiltration, it could be leveraged for phishing or UI redressing attacks targeting dashboard users (GitHub Advisory, Red Hat Bugzilla).

Exploitability

There is no known public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of disclosure. The EPSS score is approximately 0.003% (0th percentile), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires the attacker to have network access to the DNSdist instance and the target feature (domain-based dynamic rules) to be enabled, further limiting the attack surface (GitHub Advisory, DNSdist Advisory).

Exploitation steps

  1. Reconnaissance: Identify a DNSdist instance (versions 1.9.0–1.9.11 or 2.0.0–2.0.2) that has domain-based dynamic rules enabled via DynBlockRulesGroup:setSuffixMatchRule or DynBlockRulesGroup:setSuffixMatchRuleFFI and has the internal web dashboard accessible.
  2. Craft malicious DNS query: Construct a DNS query where the queried domain name contains HTML tags or payloads (e.g., <img src=x onerror=alert(1)>.example.com), designed to be reflected in the dashboard.
  3. Send crafted query: Transmit the crafted DNS query to the target DNSdist instance over the network. The domain name is processed by the dynamic rule engine and recorded for display.
  4. Wait for user interaction: The injected HTML is rendered when an administrator or authorized user views the internal web dashboard, triggering the injected content in their browser (DNSdist Advisory, GitHub Advisory).

Indicators of compromise

  • Network: Unusual DNS queries containing HTML special characters (<, >, ", ') or tag-like strings in the queried domain name directed at the DNSdist instance.
  • Logs: DNSdist query logs showing domain names with embedded HTML syntax (e.g., domains containing angle brackets or script-like patterns) that triggered dynamic block rules.
  • Web Dashboard: Unexpected HTML rendering artifacts, broken layout, or unfamiliar content appearing in the DNSdist internal web dashboard after DNS query activity.

Mitigation and workarounds

PowerDNS has released patched versions DNSdist 1.9.12 and 2.0.3, which address this vulnerability. Administrators should upgrade to these versions as the primary remediation (DNSdist Advisory, PowerDNS Blog). As a workaround, disable domain-based dynamic rules (DynBlockRulesGroup:setSuffixMatchRule / DynBlockRulesGroup:setSuffixMatchRuleFFI) if not required, restrict network access to the DNSdist instance to trusted sources, and limit access to the internal web dashboard to authorized personnel only.

Community reactions

The vulnerability was disclosed alongside the DNSdist 1.9.12 and 2.0.3 release announcement on the PowerDNS blog, and was reported to the oss-security mailing list. Red Hat tracked it via Bugzilla and assessed it as medium severity. Downstream distributions including openSUSE, Fedora, Debian, and FreeBSD issued security updates or advisories shortly after disclosure (PowerDNS Blog, Red Hat Bugzilla).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

dnsdist

Affected

sid

dnsdist: 2.0.3-1

Fixed

trixie

dnsdist: 1.9.14-0+deb13u1

Fixed

Ubuntu

Unknown

bionic (esm-apps)

dnsdist

Unknown

devel

dnsdist

Not Affected

focal (esm-apps)

dnsdist

Unknown

jammy

dnsdist

Unknown

jammy (esm-apps)

dnsdist

Unknown

noble

dnsdist

Unknown

noble (esm-apps)

dnsdist

Unknown

resolute

dnsdist

Unknown

Alpine

Fixed

edge

dnsdist: 2.0.4-r0

Fixed

v3.23

dnsdist: 2.0.4-r0

Fixed

Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-112940HIGH7.1
  • Python logoPython
  • py3-filelock
NoYesOct 20, 2026
CVE-2026-112937MEDIUM6.1
  • Python logoPython
  • python-filelock
NoYesOct 20, 2026
CVE-2026-112936MEDIUM6.1
  • Python logoPython
  • python-filelock
NoYesOct 20, 2026
CVE-2026-112939MEDIUM4.7
  • Python logoPython
  • python-filelock
NoYesOct 20, 2026
CVE-2026-112941LOW3.3
  • Python logoPython
  • filelock
NoYesOct 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management