Skip to main content

CVE-2026-58392: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in opnsense core

0
Medium
VulnerabilityCVE-2026-58392cvecve-2026-58392cwe-79
Published: 10/15/2026 (10/15/2026, 15:18:32 UTC)
Source: CVE Database V5
Vendor/Project: opnsense
Product: core

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.

CVSS v3.1

Score 5.4medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Affected software

opnsense

core

Affected versions
<26.1.11
GitHub Actionsmore threats →ai
opnsense/core
pkg:github/opnsense/core
Affected versions
<26.1.11

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/15/2026, 16:03:46 UTC

Technical Analysis

OPNsense core versions before 26.1.11 contain a stored cross-site scripting vulnerability in the NTP GPS page (src/www/services_ntpd_gps.php). The vulnerability arises because the initcmd value supplied by a user with page-services-ntp-gps privilege is base64 encoded and escaped, but then base64 decoded after escaping, resulting in unescaped HTML output. This allows an attacker to inject script code that executes in the session of any user who later opens the GPS page, potentially reading CSRF tokens and performing authenticated actions with the victim's privileges. The vulnerability is addressed in version 26.1.11.

Potential Impact

An attacker with the page-services-ntp-gps privilege can inject malicious scripts that execute in the context of other users viewing the NTP GPS page. This can lead to theft of CSRF tokens and execution of authenticated actions, including those available to administrators. The CVSS 3.1 score is 5.4 (medium severity), reflecting network attack vector, low attack complexity, required privileges, and user interaction.

Mitigation Recommendations

This vulnerability is fixed in OPNsense core version 26.1.11. Users should upgrade to version 26.1.11 or later to remediate the issue. No additional mitigation steps are indicated by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-30T18:19:58.377Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6ad0f6002cdf04f65641fe19

Added to database: 10/15/2026, 15:49:20 UTC

Last enriched: 10/15/2026, 16:03:46 UTC

Last updated: 10/15/2026, 16:19:18 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses