CVE-2026-49131

OPNsense < 26.1.9 Stored XSS via Firewall Rule Description Field

Published Aug 3, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
OPNsense before 26.1.9 contains a stored cross-site scripting vulnerability that allows authenticated attackers with firewall rule management privileges to inject arbitrary HTML or JavaScript by embedding payloads in the firewall rule description field via the filter API endpoint. The unsanitized description value is persisted and later rendered through the default cell formatter in opnsense_bootgrid.js, which assigns raw cell content to innerHTML, causing injected scripts to execute in the browser of any authenticated user who views the Firewall Rules page, enabling session hijacking or credential theft.

Analysis

AI-generated

Technical impact

This CVE exposes a stored cross‑site scripting flaw in OPNsense’s firewall rule description field. The vulnerable code stores user input without validation and later renders it via the bootgrid.js cell formatter, which assigns raw content to innerHTML. When a malicious payload is injected, any authenticated user who opens the Firewall Rules page will have the malicious script executed in their browser, potentially allowing session hijacking or credential theft. The weakness is a classic XSS flaw (CWE‑79).

Affected Systems

OPNsense versions released before 26.1.9 from Deciso B.V. are affected. The issue exists for all users with firewall rule management privileges; the injected script can affect any authenticated user who views the Firewalls page.

Risk and Exploitability

The CVSS score of 5.1 indicates a moderate severity. No EPSS data is available, and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires authenticated access with firewall rule editing rights, and the attacker can deliver the payload through the filter API endpoint. Once stored, the script runs automatically for any authenticated UI viewer, providing an easy attack path for insiders or compromised accounts.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the OPNsense patch or upgrade to version 26.1.9 or later, which removes the unsanitized rendering of rule descriptions.
  • After upgrading, audit existing firewall rules to ensure no malicious or legacy scripts remain in the description field.
  • If an immediate upgrade is not feasible, restrict or disable modification of the firewall rule description field for high‑privilege accounts, or manually sanitize the content to remove scripts before saving.

Generated by OpenCVE AI on August 4, 2026 at 09:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Opnsense
Opnsense opnsense
CPEs cpe:2.3:a:opnsense:opnsense:*:*:*:*:*:*:*:*
Vendors & Products Opnsense
Opnsense opnsense
Type Values Removed Values Added
First Time appeared Deciso
Deciso opnsense
Vendors & Products Deciso
Deciso opnsense
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description OPNsense before 26.1.9 contains a stored cross-site scripting vulnerability that allows authenticated attackers with firewall rule management privileges to inject arbitrary HTML or JavaScript by embedding payloads in the firewall rule description field via the filter API endpoint. The unsanitized description value is persisted and later rendered through the default cell formatter in opnsense_bootgrid.js, which assigns raw cell content to innerHTML, causing injected scripts to execute in the browser of any authenticated user who views the Firewall Rules page, enabling session hijacking or credential theft.
Title OPNsense < 26.1.9 Stored XSS via Firewall Rule Description Field
Weaknesses CWE-79
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'}

cvssV4_0

{'score': 5.1, '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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 14, 2026, 4:50 PM
Reserved
May 27, 2026, 5:40 PM
Status
Awaiting Analysis
Published
Aug 3, 2026, 9:16 PM
Modified
Oct 23, 2026, 9:10 PM