Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2019-25374

CVE-2019-25374: OPNsense XSS Vulnerability

CVE-2019-25374 is a reflected XSS vulnerability in OPNsense 19.1 that allows attackers to inject malicious scripts via the passthrough_networks parameter. This article covers technical details, affected versions, and mitigation.

Published: February 20, 2026

CVE-2019-25374 Overview

CVE-2019-25374 is a reflected cross-site scripting (XSS) vulnerability affecting OPNsense 19.1, an open-source firewall and routing platform. The vulnerability exists in the vpn_ipsec_settings.php file, where the passthrough_networks parameter fails to properly sanitize user-supplied input. Attackers can exploit this flaw by crafting malicious POST requests containing JavaScript payloads, which are then reflected back and executed in the context of authenticated users' browsers.

Critical Impact

Successful exploitation allows attackers to execute arbitrary JavaScript code in the browser sessions of OPNsense administrators, potentially leading to session hijacking, credential theft, or unauthorized configuration changes to network security infrastructure.

Affected Products

  • OPNsense 19.1

Discovery Timeline

  • 2026-02-15 - CVE-2019-25374 published to NVD
  • 2026-02-18 - Last updated in NVD database

Technical Details for CVE-2019-25374

Vulnerability Analysis

This reflected XSS vulnerability occurs within the IPsec VPN settings management interface of OPNsense. When administrators access the vpn_ipsec_settings.php page to configure IPsec passthrough networks, the application fails to properly encode or sanitize the passthrough_networks parameter before reflecting it in the response. This allows an attacker to inject malicious script content that executes in the victim's browser with the same privileges as the authenticated administrator.

The attack requires user interaction, as the victim must be tricked into submitting or clicking a crafted request. However, given that OPNsense is typically used as a network security appliance, successful exploitation could have significant consequences for the security of the entire network infrastructure.

Root Cause

The root cause of CVE-2019-25374 is improper input validation and output encoding in the vpn_ipsec_settings.php script. The passthrough_networks parameter is accepted from user input via POST requests and reflected back into the HTML response without adequate sanitization. This violates the fundamental security principle of treating all user input as untrusted and properly encoding output based on its context.

The vulnerability falls under CWE-79 (Improper Neutralization of Input During Web Page Generation), which is one of the most prevalent web application security weaknesses.

Attack Vector

The attack is network-based and requires an attacker to craft a malicious link or form that, when triggered by an authenticated OPNsense administrator, sends a POST request containing JavaScript code in the passthrough_networks parameter. The malicious script is then executed in the administrator's browser session.

A typical attack scenario involves:

  1. An attacker crafts a malicious page containing a hidden form that auto-submits a POST request to the vulnerable endpoint
  2. The attacker tricks an OPNsense administrator into visiting the malicious page (via phishing or other social engineering)
  3. The form submits automatically, sending the XSS payload to the OPNsense instance
  4. The payload executes in the administrator's browser context, allowing the attacker to steal session tokens, modify firewall rules, or perform other malicious actions

Technical details and proof-of-concept information are available through the Exploit-DB #46351 reference.

Detection Methods for CVE-2019-25374

Indicators of Compromise

  • Unusual POST requests to /vpn_ipsec_settings.php containing script tags or JavaScript event handlers in the passthrough_networks parameter
  • Web server logs showing encoded JavaScript payloads such as <script>, javascript:, or event handlers like onerror=, onload=
  • Unexpected session activity or configuration changes following administrator access to IPsec settings
  • Browser console errors or unexpected JavaScript execution on the OPNsense management interface

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block XSS patterns in requests to OPNsense management interfaces
  • Monitor web server access logs for suspicious patterns in the passthrough_networks parameter field
  • Deploy SentinelOne Singularity XDR to detect browser-based attacks and anomalous script execution on management workstations
  • Enable Content Security Policy (CSP) headers to restrict inline script execution and report violations

Monitoring Recommendations

  • Configure alerting for POST requests to vpn_ipsec_settings.php containing HTML or JavaScript syntax
  • Monitor administrator session activity for signs of session hijacking or unauthorized configuration changes
  • Implement logging and monitoring of all changes to IPsec VPN settings
  • Review browser security logs from administrator workstations for evidence of XSS exploitation attempts

How to Mitigate CVE-2019-25374

Immediate Actions Required

  • Upgrade OPNsense to a patched version newer than 19.1 that addresses this vulnerability
  • Restrict access to the OPNsense web management interface to trusted IP addresses only
  • Implement network segmentation to limit exposure of the management interface
  • Train administrators to recognize and avoid potential XSS attack vectors such as suspicious links or phishing attempts

Patch Information

The vulnerability affects OPNsense version 19.1. Users should upgrade to the latest stable release of OPNsense, which includes fixes for this and other security issues. For additional information, refer to the OPNsense Forum Discussion and the VulnCheck OPNsense Advisory.

Workarounds

  • Restrict management interface access to specific trusted IP addresses using firewall rules
  • Access the OPNsense management interface only from dedicated, isolated management workstations
  • Use a browser with strict XSS protection features and ensure it is up to date
  • Consider implementing a reverse proxy with XSS filtering capabilities in front of the management interface
bash
# Configuration example - Restrict OPNsense management access to trusted IPs
# Add these rules to limit access to the web GUI (typically on port 443)
# Replace 10.0.0.0/24 with your trusted management network

# In OPNsense Firewall Rules for the management interface:
# Action: Pass
# Interface: LAN (or management interface)
# Source: 10.0.0.0/24 (trusted management network)
# Destination: This Firewall
# Destination Port: 443 (HTTPS)

# Block all other access to the web GUI
# Action: Block
# Interface: Any
# Source: Any
# Destination: This Firewall
# Destination Port: 443

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechOpnsense

  • SeverityMEDIUM

  • CVSS Score5.1

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • OPNsense Forum Discussion

  • OPNsense Official Website

  • Exploit-DB #46351

  • VulnCheck OPNsense Advisory
  • Related CVEs
  • CVE-2019-25368: OPNsense 19.1 XSS Vulnerability

  • CVE-2019-25369: OPNsense Stored XSS Vulnerability

  • CVE-2019-25370: OPNsense 19.1 XSS Vulnerability

  • CVE-2019-25371: OPNsense 19.1 XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English