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.
Published: 2026-10-15
Score: 5.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored XSS executing in privileged user context
Action: Immediate Patch
AI Analysis

Impact

The vulnerability arises when user‑supplied category names or alias descriptions are inserted into HTML title attributes without proper quote‑escaping, allowing an attacker with the ability to edit firewall rules to inject JavaScript. When a rule is displayed on the Firewall Rules or NAT page, the stored script executes in the browser session of any administrator or user who views the page, granting the attacker access to CSRF tokens and enabling the execution of authenticated actions as that user.

Affected Systems

The flaw exists in the OPNsense core product prior to version 26.1.11. It affects users who have permissions to create or edit firewall categories or aliases and access the corresponding rules or NAT pages.

Risk and Exploitability

The CVSS score of 5.4 indicates moderate severity, while the EPSS score of less than 1% suggests a low probability of exploitation under current conditions. The flaw is not listed in CISA’s KEV catalog. Exploitation requires the attacker to first create a malicious category or alias and then rely on an administrator or privileged user to open the affected page, after which the attacker can perform privileged actions through CSRF tokens in the victim’s session. This restricts the attack vector to insiders or compromised accounts that can influence rule configuration, but once triggered the impact can mimic elevated privilege control.

Generated by OpenCVE AI on October 16, 2026 at 20:32 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the OPNsense core update to version 26.1.11 or newer to correct the title attribute encoding in filter_rule.volt and nat_rule.volt
  • Restrict editing rights for firewall categories and aliases to the minimum set of trusted administrators to limit the ability of a malicious actor to inject script data
  • Audit existing category names and alias descriptions for unexpected JavaScript or code fragments and remove any suspect entries before the patch is applied

Generated by OpenCVE AI on October 16, 2026 at 20:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 20 Oct 2026 03:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sat, 17 Oct 2026 19:15:00 +0000

Type Values Removed Values Added
First Time appeared Opnsense
Opnsense core
Vendors & Products Opnsense
Opnsense core

Thu, 15 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
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.
Title OPNsense: Stored XSS in Firewall Rules/NAT pages via a HTML-attribute breakout
Weaknesses CWE-79
CWE-83
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-20T02:43:10.326Z

Reserved: 2026-06-30T18:19:58.377Z

Link: CVE-2026-58391

cve-icon Vulnrichment

Updated: 2026-10-20T02:43:06.041Z

cve-icon NVD

Status : Deferred

Published: 2026-10-15T16:18:18.030

Modified: 2026-10-20T03:17:16.200

Link: CVE-2026-58391

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-17T19:00:13Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

  • CWE-83

    Improper Neutralization of Script in Attributes in a Web Page