All vulnerabilities

Servers and applications

CVE-2026-58395

XPath injection in MVC safe-delete

Severity
Medium 4.3
Published
1 Jul 2026
Last changed
15 Oct 2026
Added to UpHeron
3 Nov 2026
Fixed in
1, 26.1.11
Exploit chance
0.4% in the next 30 daysHigher than 30% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
XPath injection (CWE-643)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Also known as
GHSA-98h6-479q-9q3w
Sources
CVE Program, Project advisories (GitHub)

Description

Every MVC model controller that enables "safe delete" routes the delete token (taken directly from the request URL) into an XPath query, built using string interpolation, with no validation or escaping between the URL and the sink.

A token such as ')or(' closes the string literal and turns the query into one, matching every node in config.xml. The query runs against the entire configuration, and on a match the API returns (HTTP 500) a message embedding the matched nodes module/description/reference path/uuid. This gives an authenticated low-privilege user a cross-module configuration disclosure and a config-wide substring-presence oracle. This is reachable from 21 endpoints, each gated only by that privilege of the module.

A untrusted token is interpolated into XPath, without any sanitization/validation.

There is no validation between the URL and the sink. delBase calls checkAndThrowSafeDelete() on each comma-splitted token before the model lookup.

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