# CVE-2026-58392: OPNsense: Stored XSS in Services: NTP GPS

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-15T15:18:32.003Z
- Modified: 2026-10-15T21:08:49.703Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- opnsense core: < 26.1.11

## References

- <https://github.com/opnsense/core/security/advisories/GHSA-h793-67jm-j4m5> (exploit)
- <https://github.com/opnsense/core/commit/a92d9514b5436c868f8f97138ebed507f6de423c>
- <https://github.com/opnsense/core/commit/ed04a154dc40967541be1388e9134e451be4199e>
- <https://hackerask.com/posts/opnsense>

## Sources

- CVE List: [CVE-2026-58392](https://www.cve.org/CVERecord?id=CVE-2026-58392), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2026-58392](https://nvd.nist.gov/vuln/detail/CVE-2026-58392), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-58392 · Whole record: https://cve.day/CVE-2026-58392.json · Rebuilt by cve.day 2026-11-25T22:59:44.900Z
