All vulnerabilities

Servers and applications

GHSA-m4m3-v627-wgc2

Stored Cross-Site Scripting (XSS) via TrafficShaper description in legacy PHP firewall rules page

Severity
High 8.1
Published
15 Jun 2026
Last changed
15 Jun 2026
Added to UpHeron
3 Nov 2026
Fixed in
26.1.10
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · Needs an administrator account · Needs someone to click or open something
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N
Sources
Project advisories (GitHub)

Description

A stored cross-site scripting (XSS) vulnerability allows an authenticated administrator to inject arbitrary JavaScript that executes in the browser of any other administrator who opens the Firewall Rules edit page. The attack vector passes through the MVC framework's TrafficShaper model — whose description field accepts arbitrary characters including HTML tags — and triggers in a legacy PHP page that outputs stored values without HTML escaping.

The vulnerability spans two OPNsense subsystems:

The TrafficShaper model (src/opnsense/mvc/app/models/OPNsense/TrafficShaper/TrafficShaper.php) defines the description field as a DescriptionField. The validation regex is /^(.){1,255}$/, which permits arbitrary characters including <, >, ", and '. Payloads are stored in the OPNsense config XML without sanitization.

firewall_rules_edit.php:44 loads all shaper targets via the model:

From opnsense/core's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
OPNsenseServers and applications · github:opnsense/core
  • Every version before 26.1.10

About OPNsense

open-source firewall

From Wikidata, CC0 1.0.
GitHub stars
4,802GitHub, 15 Nov 2026
Forks
1,029GitHub, 15 Nov 2026
License
2-clause BSD LicenseWikidata
Written in
PHP, CWikidata
First released
2 Jan 2015Wikidata
First published on GitHub
13 Dec 2014GitHub

Release lines

ReleaseLatestSecurity fixes
26.7 'Xenial Xenops'26.7.9Yes
26.1 'Witty Woodpecker'26.1.11Ended 15 Jul 2026
25.7 'Visionary Viper'25.7.11Ended 28 Jan 2026
25.1 'Ultimate Unicorn'25.1.12Ended 23 Jul 2025
24.7 'Thriving Tiger'24.7.12Ended 28 Jan 2025
24.1 'Savvy Shark'24.1.10Ended 25 Jul 2024

From endoflife.date.

References