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
    • 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-2023-22467

CVE-2023-22467: Momentjs Luxon DOS Vulnerability

CVE-2023-22467 is a denial of service flaw in Momentjs Luxon caused by quadratic complexity in DateTime.fromRFC2822(). Attackers can exploit this with large inputs. This article covers technical details, affected versions, and patches.

Published: February 11, 2026

CVE-2023-22467 Overview

CVE-2023-22467 is a Regular Expression Denial of Service (ReDoS) vulnerability affecting Luxon, a popular JavaScript library for working with dates and times. The vulnerability exists in the DateTime.fromRFC2822() function, which exhibits quadratic (N²) complexity when processing certain malicious inputs. This algorithmic complexity attack causes significant performance degradation when parsing input strings exceeding 10,000 characters, making applications vulnerable to denial of service attacks when processing untrusted user data.

Critical Impact

Applications accepting untrusted date strings via DateTime.fromRFC2822() are vulnerable to ReDoS attacks that can cause service unavailability through CPU exhaustion.

Affected Products

  • Luxon versions prior to 1.38.1 on the 1.x branch
  • Luxon versions prior to 2.5.2 on the 2.x branch
  • Luxon version 3.2.1 on the 3.x branch

Discovery Timeline

  • 2023-01-04 - CVE CVE-2023-22467 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-22467

Vulnerability Analysis

The vulnerability resides in the preprocessRFC2822() function within Luxon's regex parser module (src/impl/regexParser.js). The function is responsible for sanitizing RFC 2822 formatted date strings by removing comments and normalizing whitespace before parsing. The problematic regular expression used for comment removal exhibits catastrophic backtracking behavior when processing specially crafted inputs.

This vulnerability is related to CVE-2022-31129, which affects the Moment.js library with a similar ReDoS issue. The root cause involves inefficient regex patterns that allow attackers to exploit the non-deterministic nature of regex matching engines in JavaScript.

Root Cause

The vulnerable code uses a regex pattern /\([^)]*\)|[\n\t]/g to remove parenthetical comments from RFC 2822 date strings. This pattern fails to properly handle nested or malformed parentheses, leading to exponential backtracking behavior. When processing adversarial input containing carefully constructed sequences of parentheses and other characters, the regex engine enters a state where it must explore an exponentially growing number of possible matches, resulting in quadratic time complexity.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker can exploit this vulnerability by submitting maliciously crafted date strings to any application endpoint that processes user-supplied data through DateTime.fromRFC2822(). The attack payload consists of a specially formatted string exceeding 10,000 characters designed to trigger worst-case regex matching behavior, causing the application to hang or become unresponsive while processing the input.

javascript
 function preprocessRFC2822(s) {
   // Remove comments and folding whitespace and replace multiple-spaces with a single space
   return s
-    .replace(/\([^)]*\)|[\n\t]/g, " ")
+    .replace(/\([^()]*\)|[\n\t]/g, " ")
     .replace(/(\s\s+)/g, " ")
     .trim();
 }

Source: GitHub Commit

The fix modifies the regex pattern from [^)]* to [^()]*, explicitly excluding both opening and closing parentheses from the character class. This prevents the regex engine from backtracking through nested parentheses structures.

Detection Methods for CVE-2023-22467

Indicators of Compromise

  • Abnormally high CPU utilization on application servers processing date/time data
  • Increased response latency or timeouts on endpoints accepting date string inputs
  • Application logs showing unusually long processing times for RFC 2822 date parsing operations
  • Memory consumption spikes correlated with date parsing requests

Detection Strategies

  • Monitor application performance metrics for anomalous CPU spikes during date parsing operations
  • Implement request logging that captures input string lengths to identify suspiciously large payloads
  • Use application performance monitoring (APM) tools to trace slow transactions to DateTime.fromRFC2822() calls
  • Deploy web application firewall (WAF) rules to flag or block requests with excessively long date-like strings

Monitoring Recommendations

  • Set up alerting thresholds for endpoint response times that process user-supplied date strings
  • Implement input length monitoring at API gateways to detect oversized payloads
  • Configure server-side timeout mechanisms to terminate long-running regex operations
  • Review dependency audit reports regularly using npm audit or similar tools

How to Mitigate CVE-2023-22467

Immediate Actions Required

  • Upgrade Luxon to version 1.38.1 or later (for 1.x branch users)
  • Upgrade Luxon to version 2.5.2 or later (for 2.x branch users)
  • Upgrade Luxon to version 3.2.1 or later (for 3.x branch users)
  • Audit application code to identify all usages of DateTime.fromRFC2822() with untrusted input

Patch Information

Security patches are available in Luxon versions 1.38.1, 2.5.2, and 3.2.1. The fix modifies the regex pattern in the preprocessRFC2822() function to prevent catastrophic backtracking. The patch is available in the GitHub Commit. Additional context on the similar Moment.js vulnerability can be found in the related GitHub Pull Request discussion.

Workarounds

  • Implement input length validation to reject date strings exceeding a reasonable threshold (e.g., 200 characters)
  • Add server-side timeout wrappers around DateTime.fromRFC2822() calls to prevent indefinite blocking
  • Use alternative date parsing methods when processing untrusted input until patches can be applied
  • Consider implementing rate limiting on endpoints that accept date string inputs
bash
# Update Luxon to patched version
npm update luxon

# Or install specific patched version
npm install luxon@2.5.2

# Audit dependencies for vulnerabilities
npm audit

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechLuxon

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.79%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1333
  • Technical References
  • GitHub Security Advisory

  • GitHub Security Advisory

  • Fedora Package Announcement

  • Fedora Package Announcement
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Pull Request Comment
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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