PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-58391 opnsense CVE debrief

A stored XSS vulnerability exists in OPNsense's Firewall Rules and NAT views. An attacker with edit privileges for Firewall Categories or Aliases can inject malicious code, which executes in the session of an administrator or other user viewing the affected pages. The vulnerability allows for code execution in user sessions, potentially leading to authenticated actions as the victim and access to sensitive information. Defenders should prioritize updates and review user privileges for Firewall Categories and Aliases.

Vendor
opnsense
Product
core
CVSS
MEDIUM 5.4
CISA KEV
Not listed in stored evidence
Original CVE published
2026-10-15
Original CVE updated
2026-10-20
Advisory published
2026-10-15
Advisory updated
2026-10-20

Who should care

Defenders responsible for OPNsense installations, particularly those with user privileges for Firewall Categories and Aliases, should assess exposure and prioritize updates. They should also review compensating controls for exposed systems and monitor for suspicious activity on Firewall Rules and NAT pages.

Why it matters

Defenders should care about this vulnerability as it allows for code execution in user sessions, potentially leading to authenticated actions as the victim and access to sensitive information. Prioritization of updates and review of user privileges are necessary.

  • Code execution in user sessions
  • Potential for authenticated actions as the victim
  • Access to CSRF material and sensitive information

Technical summary

The vulnerability exists due to the lack of quote-safe encoding in HTML title attributes in filter_rule.volt and nat_rule.volt. An attacker can inject malicious code, which is executed in the session of an administrator or other user viewing the affected pages. The vulnerability allows for code execution in user sessions, potentially leading to authenticated actions as the victim and access to sensitive information. The fix is included in version 26.1.11 of OPNsense, which should be applied as soon as possible. Defenders should review user privileges for Firewall Categories and Aliases to prevent exploitation.

Defensive priority

Defenders should prioritize updating to version 26.1.11 or later and review user privileges for Firewall Categories and Aliases.

Recommended defensive actions

  • Update OPNsense to version 26.1.11 or later
  • Review and limit user privileges for Firewall Categories and Aliases
  • Monitor for suspicious activity on Firewall Rules and NAT pages
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented

Evidence notes

The CVE record and source item provide details on the vulnerability, including its existence in versions prior to 26.1.11 and the fix in version 26.1.11. The vulnerability is caused by the lack of quote-safe encoding in HTML title attributes in filter_rule.volt and nat_rule.volt. An attacker can inject malicious code, which is executed in the session of an administrator or other user viewing the affected pages.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-58391 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-58391

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-58391 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-58391

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • OPNsense: Stored XSS in Firewall Rules/NAT pages via a HTML-attribute breakout

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/58xxx/CVE-2026-58391.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/opnsense/core/security/advisories/GHSA-2xrm-p255-p43h

    Supplemental source - x_refsource_CONFIRM

  • Source reference

    Unverified legacy reference

    URL: https://github.com/opnsense/core/commit/5e6313f50546474031805039e209830b63b2b0e4

    Supplemental source - x_refsource_MISC

  • Source reference

    Unverified legacy reference

    URL: https://github.com/opnsense/core/commit/fb3b8a07f407ce281b1dde748706acbb0bc514ce

    Supplemental source - x_refsource_MISC

  • Source reference

    Unverified legacy reference

    URL: https://hackerask.com/posts/opnsense

    Supplemental source - x_refsource_MISC

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.