The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-2021-47873

CVE-2021-47873: VestaCP XSS Vulnerability

CVE-2021-47873 is a stored XSS vulnerability in VestaCP versions before 0.9.8-25 affecting the IP interface configuration. Attackers can inject malicious scripts via the v_interface parameter. This article covers technical details, affected versions, impact, and mitigation.

Published: January 23, 2026

CVE-2021-47873 Overview

CVE-2021-47873 is a stored cross-site scripting (XSS) vulnerability affecting VestaCP versions prior to 0.9.8-25. The vulnerability exists in the IP interface configuration functionality, specifically in the v_interface parameter when processing POST requests to the add/ip/ endpoint. Attackers with authenticated access can inject malicious JavaScript payloads that are stored server-side and executed when other users view the affected configuration pages.

Critical Impact

Authenticated attackers can inject persistent malicious scripts into the VestaCP admin interface, potentially leading to session hijacking, credential theft, or administrative account compromise when other administrators access the affected pages.

Affected Products

  • VestaCP versions prior to 0.9.8-25
  • MyVestaCP (fork) - check vendor site for affected versions

Discovery Timeline

  • 2026-01-21 - CVE CVE-2021-47873 published to NVD
  • 2026-01-21 - Last updated in NVD database

Technical Details for CVE-2021-47873

Vulnerability Analysis

This stored XSS vulnerability stems from insufficient input validation and output encoding in VestaCP's IP interface management functionality. When an authenticated user submits a POST request to the add/ip/ endpoint, the application fails to properly sanitize the v_interface parameter before storing it in the database and rendering it back to users in the administrative interface.

The stored nature of this XSS vulnerability makes it particularly dangerous in multi-administrator environments, as the malicious payload persists in the application and executes every time an administrator views the affected configuration page. This can lead to session token theft, phishing attacks within the trusted admin context, or execution of unauthorized administrative actions on behalf of the victim.

Root Cause

The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation). The VestaCP application does not properly sanitize user-supplied input in the v_interface field before storing it in the database and fails to apply appropriate output encoding when rendering this data back to the browser. This allows HTML and JavaScript content to be interpreted and executed rather than displayed as plain text.

Attack Vector

The attack is network-based and requires authenticated access to the VestaCP administrative panel. An attacker must have valid credentials with permissions to access the IP configuration functionality. The attack flow involves:

  1. Authenticating to the VestaCP administrative interface
  2. Navigating to the IP address management section
  3. Submitting a crafted POST request to the add/ip/ endpoint with malicious JavaScript in the v_interface parameter
  4. The payload is stored in the application database
  5. When any administrator views the IP configuration page, the malicious script executes in their browser context

The vulnerability requires user interaction from the victim, who must navigate to the page containing the stored payload. Technical details and a proof-of-concept are available in the Exploit-DB #49662 entry.

Detection Methods for CVE-2021-47873

Indicators of Compromise

  • Unexpected JavaScript code or HTML tags present in IP interface configuration fields
  • Audit log entries showing unusual POST requests to the add/ip/ endpoint with encoded script content
  • User reports of browser behavior anomalies when accessing VestaCP admin pages
  • Network traffic containing suspicious payloads targeting the v_interface parameter

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect XSS patterns in POST requests to VestaCP endpoints
  • Monitor HTTP request logs for common XSS payload signatures such as <script>, javascript:, onerror=, and encoded variants
  • Review VestaCP database records for stored HTML or JavaScript content in configuration fields
  • Enable Content Security Policy (CSP) headers and monitor for CSP violation reports

Monitoring Recommendations

  • Configure centralized logging for all VestaCP administrative actions and API calls
  • Set up alerting for POST requests containing potentially malicious patterns in form parameters
  • Regularly audit IP configuration entries for unexpected content or formatting anomalies
  • Monitor browser console errors from administrative users that may indicate XSS execution attempts

How to Mitigate CVE-2021-47873

Immediate Actions Required

  • Upgrade VestaCP to version 0.9.8-25 or later immediately
  • Audit existing IP interface configurations for any suspicious or unexpected content containing HTML or JavaScript
  • Review administrative access logs for evidence of exploitation attempts
  • Consider migrating to MyVestaCP which is actively maintained - see MyVestaCP Official Site

Patch Information

The vulnerability has been addressed in VestaCP version 0.9.8-25 and later. Organizations should upgrade to the latest available version from the VestaCP Official Site or consider transitioning to the actively maintained MyVestaCP fork. Additional technical details are available in the VulnCheck VestaCP Advisory.

Workarounds

  • Restrict VestaCP administrative panel access to trusted IP addresses only using firewall rules
  • Implement a reverse proxy with a Web Application Firewall (WAF) that filters XSS payloads
  • Limit administrative user accounts to only those absolutely necessary and enforce strong authentication
  • Regularly backup and audit configuration data to detect unauthorized modifications
  • Consider disabling the IP interface management feature if not actively required
bash
# Example: Restrict VestaCP admin access to trusted IPs using iptables
iptables -A INPUT -p tcp --dport 8083 -s 10.0.0.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 8083 -j DROP

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechVestacp

  • SeverityMEDIUM

  • CVSS Score5.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/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
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • MyVestaCP Official Site

  • VestaCP Official Site

  • Exploit-DB #49662

  • VulnCheck VestaCP Advisory
  • Related CVEs
  • CVE-2020-36948: VestaCP Authentication Bypass 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