A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2026-41683

CVE-2026-41683: i18next-http-middleware XSS Vulnerability

CVE-2026-41683 is an XSS flaw in i18next-http-middleware affecting Node.js frameworks. Attackers can inject CRLF sequences through language parameters. This article covers technical details, affected versions, and mitigations.

Published: May 18, 2026

CVE-2026-41683 Overview

CVE-2026-41683 is an HTTP response splitting vulnerability in i18next-http-middleware, a localization middleware for Node.js frameworks such as Express, Fastify, and Deno. Versions prior to 3.9.3 write attacker-controlled language values into the Content-Language response header after passing them through utils.escape(). The escape routine performs HTML-entity encoding but does not strip carriage return (\r), line feed (\n), or other control characters. Attackers can inject CRLF sequences through the lng parameter to manipulate response headers and inject content. The maintainers patched the issue in version 3.9.3.

Critical Impact

Attackers can inject arbitrary HTTP headers and response content through the lng parameter, enabling header injection, cache poisoning, and reflected cross-site scripting against users of vulnerable applications.

Affected Products

  • i18next-http-middleware versions prior to 3.9.3
  • Node.js applications using Express or Fastify with the vulnerable middleware
  • Deno applications integrating the vulnerable middleware

Discovery Timeline

  • 2026-05-08 - CVE-2026-41683 published to NVD
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2026-41683

Vulnerability Analysis

The vulnerability is a classic HTTP response splitting flaw [CWE-79] caused by incomplete output sanitization. The middleware reads a user-controlled language identifier from the request, typically the lng query parameter, and reflects it into the Content-Language header through res.setHeader('Content-Language', ...). Before writing the header, the middleware calls utils.escape(), an HTML-entity encoder designed to neutralize characters such as <, >, and &. That function does not handle CRLF or other control characters, so byte sequences like %0d%0a survive intact.

When the host application uses an older i18next release earlier than 19.5.0, the backward-compatibility fallback at LanguageDetector.js:100 returns the raw detected value rather than a validated locale code. The unfiltered string is then handed to setHeader, producing a header value that contains literal newlines. Downstream HTTP parsers interpret those newlines as header delimiters, allowing the attacker to terminate the Content-Language header and append additional headers or response body content.

Root Cause

The root cause is reliance on an HTML encoder for an HTTP header context. utils.escape() was designed to prevent cross-site scripting in HTML output and does not sanitize header-specific metacharacters. Header values must be validated against [RFC 7230] rules, which forbid CR, LF, and NUL bytes. Combined with i18next versions that do not normalize detected language codes, the middleware exposes a direct sink for header injection.

Attack Vector

An unauthenticated remote attacker crafts a request such as GET /?lng=en%0d%0aSet-Cookie:%20sid=evil against a vulnerable endpoint. The middleware reflects the decoded value into Content-Language, splitting the response into two logical headers. Variants of this payload can inject cache control directives, redirect headers, or full HTTP response bodies that load attacker-controlled scripts. Exploitation requires no privileges and no user interaction, and it is fully scriptable across any application running an affected version.

Detection Methods for CVE-2026-41683

Indicators of Compromise

  • HTTP requests containing URL-encoded CRLF sequences (%0d%0a, %0A, %0D) in the lng query parameter, cookie, or Accept-Language header
  • Application access logs showing unusually long or non-RFC-compliant values in language detection parameters
  • Responses where the Content-Language header contains unexpected newlines or where additional headers appear immediately after it

Detection Strategies

  • Inspect web application firewall logs for requests where language-related parameters contain control characters or encoded line terminators
  • Audit Node.js dependency manifests (package.json, package-lock.json, yarn.lock) for i18next-http-middleware versions earlier than 3.9.3
  • Add runtime assertions or proxy rules that reject any outbound Content-Language header containing characters outside the RFC 5646 language tag grammar

Monitoring Recommendations

  • Forward Node.js application and reverse-proxy logs to a centralized analytics platform and alert on CRLF patterns in request parameters
  • Track dependency drift across services with software composition analysis to surface vulnerable middleware versions as they appear
  • Monitor for downstream effects such as unexpected Set-Cookie headers, cache poisoning anomalies, or reflected script payloads in client telemetry

How to Mitigate CVE-2026-41683

Immediate Actions Required

  • Upgrade i18next-http-middleware to version 3.9.3 or later across all Node.js and Deno services
  • Upgrade i18next to version 19.5.0 or later to remove the backward-compatibility fallback that produced raw detected values
  • Audit application code for any other location that reflects request-derived data into response headers without strict validation

Patch Information

The maintainers fixed the issue in i18next-http-middleware version 3.9.3 by sanitizing the language value before it reaches res.setHeader('Content-Language', ...). Details are available in the GitHub Security Advisory GHSA-c3h8-g69v-pjrg.

Workarounds

  • Place a reverse proxy or WAF rule in front of vulnerable services that rejects requests containing CRLF sequences in the lng parameter and Accept-Language header
  • Constrain the supported language set in application code and validate the detected value against an allow list of RFC 5646 tags before any header write
  • Remove or disable the Content-Language header emission until the dependency upgrade is completed
bash
# Upgrade the vulnerable middleware and the underlying i18next library
npm install i18next-http-middleware@^3.9.3 i18next@^19.5.0
npm audit --production

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechI18next

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-42353: i18next-http-middleware Path Traversal

  • CVE-2026-41693: i18next-fs-backend Path Traversal Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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