CVE-2026-58392

OPNsense: Stored XSS in Services: NTP GPS

Published Oct 15, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
OPNsense is a FreeBSD based firewall and routing platform. Prior to version 26.1.11, the NTP GPS page stores the operator-supplied initcmd value in base64 form, applies legacy_html_escape_form_data() to the encoded string, and then uses base64_decode() to decode the value directly into the GPS initialization-command textarea in src/www/services_ntpd_gps.php. Because decoding occurs after escaping, stored HTML remains unescaped at the output sink. A user with page-services-ntp-gps privilege can store a value that closes the textarea, and script executes in the session of any user who later opens the GPS page. The script can read CSRF material and perform authenticated actions, including actions available to an administrator. This issue is fixed in version 26.1.11.

Analysis

AI-generated

Technical impact

A flaw in the NTP GPS configuration page of OPNsense allows an attacker who can grant the page‑services‑ntp‑gps permission to store a value containing unescaped HTML and JavaScript. The system stores the initcmd parameter in base64, applies legacy_html_escape_form_data() to the encoded string, and then decodes it before rendering the textarea. Because decoding occurs after escaping, the stored HTML remains unescaped at the output sink, leading to a stored cross‑site scripting vulnerability that executes when any user opens the GPS page.

Affected Systems

The vulnerability affects the OPNsense core product, a FreeBSD‑based firewall and routing platform. All releases prior to version 26.1.11 are impacted, as the security fix was applied in that release.

Risk and Exploitability

The CVSS score of 5.4 classifies the issue as moderate severity, while the EPSS score of < 1% indicates a low likelihood of exploitation at the time of analysis. The vulnerability is not listed in CISA’s KEV catalog. Successful exploitation requires an authenticated user with page‑services‑ntp‑gps privileges; the attacker can then inject and execute arbitrary client‑side code in the browsers of other users, read CSRF tokens, and perform authenticated actions, including those normally reserved for administrators.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OPNsense to version 26.1.11 or later to apply the vendor fix
  • Reset the NTP GPS initialization‑command field to a safe default or remove existing entries containing unescaped HTML
  • Limit the page‑services‑ntp‑gps permission to only trusted administrators until the patch is applied

Generated by OpenCVE AI on October 16, 2026 at 21:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Opnsense
Opnsense core
Vendors & Products Opnsense
Opnsense core
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description OPNsense is a FreeBSD based firewall and routing platform. Prior to version 26.1.11, the NTP GPS page stores the operator-supplied initcmd value in base64 form, applies legacy_html_escape_form_data() to the encoded string, and then uses base64_decode() to decode the value directly into the GPS initialization-command textarea in src/www/services_ntpd_gps.php. Because decoding occurs after escaping, stored HTML remains unescaped at the output sink. A user with page-services-ntp-gps privilege can store a value that closes the textarea, and script executes in the session of any user who later opens the GPS page. The script can read CSRF material and perform authenticated actions, including actions available to an administrator. This issue is fixed in version 26.1.11.
Title OPNsense: Stored XSS in Services: NTP GPS
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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 15, 2026, 3:54 PM
Reserved
Jun 30, 2026, 6:19 PM
Status
Deferred
Published
Oct 15, 2026, 4:18 PM
Modified
Oct 15, 2026, 9:08 PM