OPNsense Reflected Cross-Site Scripting Vulnerability

Vulnerability

A reflected cross-site scripting vulnerability has been identified in OPNsense version 19.1. This issue allows unauthenticated attackers to inject malicious scripts by exploiting inadequate input validation in the 'host' parameter. Attackers can send crafted POST requests to the 'diag_ping.php' endpoint, embedding script payloads that execute arbitrary JavaScript in the browsers of users.

Impact

Exploitation of this vulnerability allows for reflected cross-site scripting, where injected scripts are executed in the context of the user's browser.

Reproduction

To reproduce this vulnerability, send a POST request to the 'diag_ping.php' endpoint with a script payload in the 'host' parameter. The injected script will be executed in the user's browser, demonstrating the cross-site scripting vulnerability.

Remediation

Users are advised to update to OPNsense version 19.1.1, which addresses this cross-site scripting vulnerability.

Added: Feb 15, 2026, 2:21 PM
Updated: Feb 15, 2026, 2:21 PM

Vulnerability Rating

Custom Algorithm
spread
5.7
impact
1.7
exploitability
7.4
remediation
7.7
relevance
3.1
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.