CVE-2019-25368 OPNsense 19.1 Reflected XSS via diag_backup.php
Attackers can inject malicious scripts via POST parameters in diag_backup.php to execute JavaScript in administrator sessions.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2019-25368?
CVE-2019-25368 is a medium-severity cross-site scripting vulnerability in OPNsense, published on 15 Feb 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
OPNsense 19.1 contains multiple cross-site scripting vulnerabilities in the diag_backup.php endpoint that allow attackers to inject malicious scripts through multiple parameters including GDrive_GDriveEmail, GDrive_GDriveFolderID, GDrive_GDriveBackupCount, Nextcloud_url, Nextcloud_user, Nextcloud_password, Nextcloud_password_encryption, and Nextcloud_backupdir. Attackers can submit POST requests with script payloads in these parameters to execute arbitrary JavaScript in the context of authenticated administrator sessions.
Weakness: CWE-79
Which versions are affected by CVE-2019-25368?
It affects 1 product.
Products include Opnsense Opnsense.
How do I fix CVE-2019-25368?
No fix has been published for CVE-2019-25368 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2019-25368 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-25368 exists.
Other vulnerabilities in OPNsense
Sources
Also known as GHSA-48j5-wgv3-9c7p.