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.
Published: 2026-10-15
Score: 5.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored XSS that enables privileged actions
Action: Apply Patch
AI Analysis

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.

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

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 yet.

History

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

Type Values Removed Values Added
Metrics ssvc

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


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

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-15T15:54:57.730Z

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

Link: CVE-2026-58392

cve-icon Vulnrichment

Updated: 2026-10-15T15:54:35.412Z

cve-icon NVD

Status : Deferred

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

Modified: 2026-10-15T21:08:49.703

Link: CVE-2026-58392

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-16T21:15:14Z

Weaknesses
  • CWE-79

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