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-2024-39694

CVE-2024-39694: Duende IdentityServer URL Validation Flaw

CVE-2024-39694 is a URL validation vulnerability in Duende IdentityServer that allows attackers to craft malicious URLs treated as local, enabling phishing attacks. This article covers technical details, affected versions, and mitigation.

Updated: May 15, 2026

CVE-2024-39694 Overview

CVE-2024-39694 is an open redirect vulnerability [CWE-601] in Duende IdentityServer, an OpenID Connect and OAuth 2.x framework for ASP.NET Core. Attackers can craft malicious URLs that certain functions in IdentityServer incorrectly classify as local and trusted. When IdentityServer returns such a URL as a redirect, some browsers will follow it to a third-party, untrusted site. The flaw does not directly expose user credentials, authorization codes, access tokens, refresh tokens, or identity tokens. However, attackers can chain it into phishing campaigns to harvest user credentials by abusing the trust of the IdentityServer host domain. The vulnerability is fixed in versions 7.0.6, 6.3.10, 6.2.5, 6.1.8, and 6.0.5.

Critical Impact

Attackers can leverage trusted IdentityServer URLs to redirect authenticated user flows to attacker-controlled sites, enabling targeted credential phishing campaigns.

Affected Products

  • Duende IdentityServer versions prior to 7.0.6, 6.3.10, 6.2.5, 6.1.8, and 6.0.5
  • Duende.IdentityServer 5.1 and earlier (no longer supported)
  • All versions of IdentityServer4 (no longer supported)

Discovery Timeline

  • 2024-07-31 - CVE-2024-39694 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2024-39694

Vulnerability Analysis

The vulnerability resides in the IsLocalUrl extension method within Duende IdentityServer's string utility helpers. This function determines whether a URL passed as a return URL parameter points to the same IdentityServer host. The pre-patch implementation diverged from the canonical ASP.NET Core IUrlHelper.IsLocalUrl logic, allowing certain malformed URLs to be classified as local. Attackers can craft a return URL that bypasses these checks while still triggering an HTTP redirect to an external domain.

Because IdentityServer commonly handles login, logout, and consent flows that accept user-supplied return URLs, the vulnerable validation routine affects authentication endpoints exposed to the public internet. A successful redirect places the victim on an attacker-controlled site that visually mimics the legitimate IdentityServer login page, enabling credential harvesting.

Root Cause

The root cause is improper URL validation [CWE-601]. The internal IsLocalUrl implementation was originally copied from ASP.NET Core to avoid an external dependency but drifted from the upstream behavior. The patch realigns IdentityServer's local URL validation with the current ASP.NET Core reference implementation.

Attack Vector

Exploitation requires network access to the IdentityServer endpoint and user interaction, typically a victim clicking a crafted link. The attacker delivers a URL of the form https://identityserver.example.com/account/login?returnUrl=<crafted-payload> via email, chat, or a malicious web page. After authentication, IdentityServer issues a redirect to the attacker-controlled location.

The patch replaces the divergent helper with the canonical ASP.NET Core implementation:

text
     [DebuggerStepThrough]
     public static bool IsLocalUrl(this string url)
     {
+        // This implementation is a copy of
+        // https://github.com/dotnet/aspnetcore/blob/3f1acb59718cadf111a0a796681e3d3509bb3381/src/Mvc/Mvc.Core/src/Routing/UrlHelperBase.cs#L315
+        // We originally copied that code to avoid a dependency, but we could
+        // potentially remove this entirely by switching to the Microsoft.NET.Sdk.Web sdk.
         if (string.IsNullOrEmpty(url))
         {
             return false;

Source: DuendeSoftware IdentityServer commit 269ca21

Detection Methods for CVE-2024-39694

Indicators of Compromise

  • HTTP 302 responses from IdentityServer endpoints (/account/login, /connect/authorize, /account/logout) with Location headers pointing to external domains
  • Login or logout requests containing returnUrl or redirect_uri parameters with unusual encodings, backslashes, or protocol-relative prefixes such as //attacker.tld
  • Referrer logs showing user traffic flowing from IdentityServer hosts to unfamiliar third-party domains shortly after authentication

Detection Strategies

  • Inspect web server and reverse proxy logs for return URL parameters that fail strict allow-list validation against the IdentityServer host
  • Compare deployed Duende IdentityServer assembly versions against the patched releases (7.0.6, 6.3.10, 6.2.5, 6.1.8, 6.0.5) during routine asset inventories
  • Correlate authentication events with downstream DNS or proxy queries to newly observed external domains to surface phishing pivots

Monitoring Recommendations

  • Alert when returnUrl values contain characters such as \, @, or double slashes that commonly bypass URL parsers
  • Enable WAF rules to inspect query strings on IdentityServer endpoints for suspicious redirect payloads
  • Monitor user reports of credential prompts appearing on unexpected domains following IdentityServer interactions

How to Mitigate CVE-2024-39694

Immediate Actions Required

  • Upgrade Duende IdentityServer to a patched version: 7.0.6, 6.3.10, 6.2.5, 6.1.8, or 6.0.5
  • Audit any custom UI code in the IdentityServer host that processes return URLs to ensure it uses IUrlHelper.IsLocalUrl from ASP.NET Core
  • Migrate off unsupported Duende.IdentityServer 5.1 and earlier or any IdentityServer4 deployment because these will not receive fixes

Patch Information

Duende Software resolved the issue by aligning the internal IsLocalUrl helper with the current ASP.NET Core implementation. Refer to the DuendeSoftware Security Advisory GHSA-ff4q-64jc-gx98 for full advisory details and the related commits 269ca21, 765116a, d0d8eab, f04cf0b, and fe817b4.

Workarounds

  • If upgrading is not immediately possible, replace calls to the vulnerable extension method with IUrlHelper.IsLocalUrl from ASP.NET Core inside IdentityServer UI code
  • Enforce a strict allow-list of permitted return URL hosts for login, logout, and consent flows
  • Reject return URL values that contain backslashes, encoded slashes, @ characters, or protocol prefixes before passing them to redirect helpers
bash
# Example: update Duende IdentityServer package to a patched version
dotnet add package Duende.IdentityServer --version 7.0.6
dotnet restore
dotnet build --configuration Release

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechDuende Identityserver

  • SeverityMEDIUM

  • CVSS Score4.7

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-601
  • Technical References
  • DuendeSoftware IdentityServer Commit Update

  • DuendeSoftware IdentityServer Commit Update

  • DuendeSoftware IdentityServer Commit Update

  • DuendeSoftware IdentityServer Commit Update

  • DuendeSoftware IdentityServer Commit Update

  • DuendeSoftware Security Advisory GHSA-ff4q-64jc-gx98
  • Related CVEs
  • CVE-2026-4349: Duende IdentityServer Auth Bypass 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