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
    • 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-2022-23646

CVE-2022-23646: Vercel Next.js UI Misrepresentation Flaw

CVE-2022-23646 is a UI misrepresentation vulnerability in Vercel Next.js affecting versions 10.0.0 to 12.0.x. Attackers can exploit SVG handling to mislead users. This article covers technical details, affected versions, and mitigations.

Published: February 18, 2026

CVE-2022-23646 Overview

CVE-2022-23646 is a User Interface (UI) Misrepresentation of Critical Information vulnerability affecting Vercel Next.js, a popular React framework for building web applications. This vulnerability exists in Next.js versions 10.0.0 through 12.0.x, where the image optimization feature can be exploited when specific configuration conditions are met.

The vulnerability allows attackers to potentially deceive users by manipulating how critical UI elements are displayed. This occurs when the next.config.js file has an images.domains array configured, and the specified image host permits user-provided SVG content. Applications using a non-default images.loader configuration are not affected by this vulnerability.

Critical Impact

Attackers can exploit this vulnerability to misrepresent critical user interface information, potentially leading to social engineering attacks, phishing, or other deceptive practices that could compromise user trust and security.

Affected Products

  • Vercel Next.js versions 10.0.0 through 12.0.x
  • Next.js applications with images.domains array configured in next.config.js
  • Deployments using image hosts that allow user-provided SVG content

Discovery Timeline

  • 2022-02-17 - CVE-2022-23646 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-23646

Vulnerability Analysis

This vulnerability is classified under CWE-451 (User Interface (UI) Misrepresentation of Critical Information). The core issue lies in how Next.js handles image optimization when processing SVG content from user-controlled sources.

When a Next.js application is configured to optimize images from external domains via the images.domains setting, and those domains allow users to upload or serve SVG files, an attacker can craft malicious SVG content that misrepresents critical UI elements. SVG files, being XML-based, can contain embedded scripts, CSS, and complex graphical elements that may be rendered in unintended ways within the application context.

The attack surface is network-accessible and requires no authentication or user interaction to exploit successfully. The primary impact is to data integrity, as attackers can manipulate how information is presented to end users without affecting confidentiality or availability.

Root Cause

The root cause of CVE-2022-23646 stems from insufficient validation and sanitization of SVG content within the Next.js image optimization pipeline. When the default image loader processes images from configured domains, it does not adequately restrict or sanitize SVG files that may contain deceptive UI elements.

The vulnerability specifically manifests when:

  1. The next.config.js file contains an images.domains array
  2. At least one configured domain permits user-uploaded SVG content
  3. The application uses the default images.loader configuration

Attack Vector

The attack vector for this vulnerability is network-based. An attacker can exploit this vulnerability by:

  1. Uploading a malicious SVG file to an allowed image host domain
  2. Crafting the SVG to display misleading UI elements that mimic legitimate application interfaces
  3. Having the malicious SVG processed through Next.js image optimization
  4. Users viewing the optimized image see the misrepresented UI, potentially leading to credential theft, malware installation, or other malicious actions

The vulnerability allows attackers to manipulate how critical information appears to users. For example, an attacker could create an SVG that displays a fake login form, fake security warnings, or other deceptive content that appears to be part of the legitimate application. Technical details regarding the specific exploitation mechanism can be found in the GitHub Security Advisory.

Detection Methods for CVE-2022-23646

Indicators of Compromise

  • Presence of SVG files with embedded JavaScript or suspicious CSS styling served through the Next.js image optimization endpoint
  • Unusual SVG content referencing external resources or containing base64-encoded data
  • Reports from users about unexpected UI elements or visual inconsistencies
  • Network traffic analysis showing SVG requests to the /_next/image endpoint with external domain sources

Detection Strategies

  • Review next.config.js files across all Next.js deployments to identify those with images.domains configurations using the default loader
  • Implement content security policies (CSP) that restrict inline scripts and styles for SVG content
  • Monitor image optimization endpoint logs for requests sourcing SVGs from external domains
  • Perform static code analysis on application configurations to identify vulnerable setups

Monitoring Recommendations

  • Enable detailed logging for the Next.js image optimization feature to track all external image requests
  • Set up alerts for SVG file requests through the image optimization pipeline, particularly from user-controlled domains
  • Monitor for anomalous patterns in image requests that could indicate exploitation attempts
  • Implement runtime application self-protection (RASP) solutions to detect and block malicious SVG rendering

How to Mitigate CVE-2022-23646

Immediate Actions Required

  • Upgrade all Next.js installations to version 12.1.0 or later immediately
  • Review all next.config.js files to identify vulnerable configurations
  • Audit image domains to ensure they have proper SVG upload restrictions
  • Consider temporarily disabling SVG support on image host domains until the patch is applied

Patch Information

Vercel has released a patch in Next.js version 12.1.0 that addresses this vulnerability. The fix includes improved handling of SVG content within the image optimization pipeline.

For detailed information about the patch, review the GitHub Pull Request #34075 and the Next.js v12.1.0 Release Notes.

Workarounds

  • Configure next.config.js to use a non-default images.loader configuration, such as cloudinary, imgix, akamai, or a custom loader
  • Remove domains that allow user-provided SVG content from the images.domains array
  • Implement server-side SVG sanitization before images are processed by Next.js
  • Use a reverse proxy or CDN with SVG filtering capabilities to intercept and sanitize potentially malicious content
bash
# Example workaround configuration in next.config.js
# Change from default loader to a custom loader to mitigate the vulnerability

# Before (vulnerable):
# module.exports = {
#   images: {
#     domains: ['user-content.example.com'],
#   },
# }

# After (mitigated):
# module.exports = {
#   images: {
#     loader: 'custom',
#     domains: ['user-content.example.com'],
#   },
# }

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechNext.js

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability1.38%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-451
  • Technical References
  • GitHub Next.js Release v12.1.0
  • Vendor Resources
  • GitHub Pull Request Discussion

  • GitHub Security Advisory GHSA-fmvm-x8mv-47mj
  • Related CVEs
  • CVE-2021-37699: Vercel Next.js Open Redirect Vulnerability

  • CVE-2026-27977: Vercel Next.js Auth Bypass Vulnerability

  • CVE-2026-27978: Vercel Next.js CSRF Vulnerability

  • CVE-2026-27979: Vercel Next.js DoS 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