All vulnerabilities

Servers and applications

CVE-2026-58390

Stored XSS to root RCE via OpenVPN client common_name in status views

Severity
High 8.0
Published
1 Jul 2026
Last changed
20 Oct 2026
Added to UpHeron
3 Nov 2026
Fixed in
1, 26.1.11
Exploit chance
0.6% in the next 30 daysHigher than 49% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · Only under certain conditions · Needs a user account · Needs someone to click or open something
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
Also known as
GHSA-26cj-h9rj-g5pf
Sources
CVE Program, Project advisories (GitHub)

Description

The OpenVPN connection-status dashboard widget renders the client common_name into an HTML attribute without quote-safe encoding. src/opnsense/www/js/widgets/OpenVPNClients.js:135 builds data-common-name="${client.common_name}", and the MVC response layer escapes API output with htmlspecialchars($result, ENT_NOQUOTES) (src/opnsense/mvc/app/library/OPNsense/Mvc/Response.php:114), which encodes <, >, and & but leaves " and ' intact. A common_name containing a double quote closes the attribute and injects new attributes into the live span.

When an OpenVPN server runs with username-as-common-name and an external auth backend (RADIUS or LDAP), the client chooses its own username and that username becomes the common_name shown in the status. The local-database username validator blocks quotes; RADIUS and LDAP usernames are not subject to that mask.

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

Affected software

SoftwareAffected versions
OPNsenseServers and applications · cna:opnsense|core
  • Every version before 26.1.11
OPNsenseServers and applications · github:opnsense/core
  • Every version before 1

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