# CVE-2026-58391: OPNsense: Stored XSS in Firewall Rules/NAT pages via a HTML-attribute breakout

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-15T15:12:08.334Z
- Modified: 2026-10-20T03:17:16.200Z
- Weaknesses: CWE-79, CWE-83
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

OPNsense is a FreeBSD based firewall and routing platform. Prior to version 26.1.11, Firewall Rules and NAT views place stored category names and alias descriptions into HTML title attributes in filter_rule.volt and nat_rule.volt without quote-safe encoding. The response layer uses ENT_NOQUOTES, so a double quote survives and closes the attribute, allowing an event-handler attribute to be added to the existing span. A user with Firewall Categories or Firewall Alias Edit privileges can store a category name or alias description; the category must be assigned to a filter or NAT rule, or the alias must be referenced by a rule source or destination, and the rule must be saved so the affected tooltip is rendered. Script then executes in the session of an administrator or other user who opens the affected Rules or NAT page. The script can access CSRF material and perform authenticated actions as the victim. This issue is fixed in version 26.1.11.

(As written by CVE List.)

## Affected

- opnsense core: < 26.1.11

## References

- <https://github.com/opnsense/core/security/advisories/GHSA-2xrm-p255-p43h> (exploit)
- <https://github.com/opnsense/core/commit/5e6313f50546474031805039e209830b63b2b0e4>
- <https://github.com/opnsense/core/commit/fb3b8a07f407ce281b1dde748706acbb0bc514ce>
- <https://hackerask.com/posts/opnsense>

## Sources

- CVE List: [CVE-2026-58391](https://www.cve.org/CVERecord?id=CVE-2026-58391), CVE Terms of Use, modified 2026-10-20
- NVD: [CVE-2026-58391](https://nvd.nist.gov/vuln/detail/CVE-2026-58391), Public domain, modified 2026-10-20

---

Page: https://cve.day/CVE-2026-58391 · Whole record: https://cve.day/CVE-2026-58391.json · Rebuilt by cve.day 2026-11-25T22:59:44.900Z
