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-2021-26291

CVE-2021-26291: Apache Maven Information Disclosure Flaw

CVE-2021-26291 is an information disclosure vulnerability in Apache Maven affecting repository handling. Malicious actors could exploit insecure HTTP repositories. This article covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2021-26291 Overview

CVE-2021-26291 is an Origin Validation Error vulnerability in Apache Maven that allows the build tool to follow repositories defined in a dependency's Project Object Model (pom.xml) without proper validation. This behavior enables attackers who gain control of a referenced repository, or who position themselves to impersonate such a repository, to inject malicious artifacts into software builds. The vulnerability is particularly dangerous because it affects the software supply chain, potentially allowing arbitrary code execution during the build process when untrusted dependencies are resolved over insecure HTTP connections.

Critical Impact

Attackers can exploit this vulnerability to inject malicious code into software builds by compromising or impersonating HTTP-based Maven repositories referenced in transitive dependencies, leading to supply chain compromise affecting downstream applications.

Affected Products

  • Apache Maven (versions prior to 3.8.1)
  • Quarkus Quarkus
  • Oracle Financial Services Analytical Applications Infrastructure
  • Oracle GoldenGate Big Data and Application Adapters

Discovery Timeline

  • April 23, 2021 - CVE-2021-26291 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-26291

Vulnerability Analysis

This vulnerability stems from Apache Maven's default behavior of trusting and following repository URLs specified within a dependency's POM file. When Maven resolves dependencies, it recursively processes the POM files of each dependency, which can specify additional repositories from which to fetch artifacts. Prior to version 3.8.1, Maven would follow these repository references without restriction, including those using insecure HTTP connections.

The attack surface is significant because an attacker does not need to compromise the primary repository used by a project. Instead, they can target any HTTP-based repository referenced by any transitive dependency in the project's dependency tree. This creates a broad attack surface across the software supply chain.

Organizations using a repository manager such as Nexus, Artifactory, or Apache Archiva to govern their builds are protected from this vulnerability, as the repository manager acts as a proxy and enforces repository policies centrally.

Root Cause

The root cause is classified as CWE-346 (Origin Validation Error). Maven's dependency resolution mechanism inherently trusted repository URLs embedded in POM files without validating the origin or requiring secure transport. This design assumed that all repositories referenced in POM files were trustworthy, which creates an implicit trust relationship with potentially untrusted third-party repositories specified in transitive dependencies.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability through several methods:

  1. Repository Takeover: Taking control of an abandoned or expired domain hosting a Maven repository that is still referenced in existing POM files
  2. Man-in-the-Middle Attack: Intercepting HTTP traffic to a legitimate repository and injecting malicious artifacts when dependencies are fetched over unencrypted connections
  3. DNS Hijacking: Redirecting repository domain names to attacker-controlled servers
  4. Rogue Repository Insertion: Contributing to open-source projects with POM files that reference attacker-controlled repositories

When Maven resolves dependencies from a compromised repository, the malicious artifacts are downloaded and executed during the build process, allowing arbitrary code execution in the build environment.

Detection Methods for CVE-2021-26291

Indicators of Compromise

  • Unexpected outbound HTTP connections to unfamiliar Maven repositories during build processes
  • POM files in dependencies containing references to non-standard or HTTP-based repositories
  • Build artifacts with unexpected checksums or signatures not matching known-good values
  • Network traffic to recently registered or suspicious domains from build servers

Detection Strategies

  • Monitor Maven build logs for repository URLs being accessed, particularly HTTP (non-SSL) endpoints
  • Implement network monitoring to detect connections to unauthorized Maven repository domains from CI/CD infrastructure
  • Use software composition analysis (SCA) tools to audit dependency trees for references to untrusted or HTTP-based repositories
  • Configure intrusion detection systems to alert on HTTP traffic from build servers to external Maven repositories

Monitoring Recommendations

  • Enable verbose logging in Maven builds to capture all repository access attempts and artifact resolution paths
  • Deploy network monitoring on build servers to track outbound connections during dependency resolution
  • Implement regular audits of effective POM files to identify third-party repository references in the dependency tree
  • Set up alerts for Maven builds accessing repositories outside of approved repository managers

How to Mitigate CVE-2021-26291

Immediate Actions Required

  • Upgrade Apache Maven to version 3.8.1 or later, which blocks HTTP repository references by default
  • Audit existing projects for POM files containing HTTP repository URLs and update them to use HTTPS
  • Configure a repository manager (Nexus, Artifactory, or Apache Archiva) to proxy all external Maven repositories
  • Review the effective POM of projects to identify all repository references in transitive dependencies

Patch Information

Apache released Maven 3.8.1 which changes the default behavior to no longer follow HTTP (non-SSL) repository references. Users should upgrade to Maven 3.8.1 or later to receive this protection automatically. For detailed information, refer to the Apache Maven User Thread and Oracle April 2022 Security Alert for Oracle product patches.

Workarounds

  • Deploy a repository manager to centrally control and proxy all Maven repository access, which prevents builds from directly accessing external repositories
  • Explicitly block HTTP repositories in settings.xml by configuring mirror settings that redirect all repository requests through secure internal proxies
  • Use Maven's --strict-checksums flag to verify artifact integrity and detect tampering during dependency resolution
  • Implement network-level controls to block outbound HTTP connections from build servers to external Maven repositories
bash
# Maven settings.xml configuration to block HTTP repositories
# Add this to your ~/.m2/settings.xml or project settings

# Example mirror configuration to redirect all repositories through a secure proxy
# <settings>
#   <mirrors>
#     <mirror>
#       <id>secure-central</id>
#       <name>Secure Central Repository</name>
#       <url>https://your-repository-manager.example.com/repository/maven-public/</url>
#       <mirrorOf>*</mirrorOf>
#     </mirror>
#   </mirrors>
# </settings>

# Verify Maven version (should be 3.8.1 or later)
mvn --version

# Run builds with strict checksum verification
mvn clean install --strict-checksums

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechApache Maven

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability54.22%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-346
  • Technical References
  • Openwall OSS-Security Post

  • Apache Announcement Thread

  • Apache Maven Development Discussion

  • Apache Karaf Issues Thread

  • Apache Druid Commits Discussion

  • Apache Kafka JIRA Update

  • Apache Kafka JIRA Notification

  • Apache Karaf Issues Discussion

  • Apache Kafka User Thread

  • Apache Karaf Issues Update

  • Apache Karaf Issues Notification

  • Apache Kafka Dev Discussion

  • Apache Kafka JIRA Update

  • Apache Kafka JIRA Notification

  • Apache Jena Dev Thread

  • Apache Karaf Issues Discussion

  • Apache Karaf Issues Notification

  • Apache Karaf Issues Notification

  • Apache Kafka Commits Update

  • Apache Karaf Issues Notification

  • Apache Kafka Dev Update

  • Apache Karaf Issues Notification

  • Apache Karaf Issues Notification

  • Apache Kafka JIRA Update

  • Apache Kafka Commits Discussion

  • Apache Kafka JIRA Notification

  • Apache Karaf Issues Discussion

  • Apache Jena Dev Discussion

  • Apache Druid Commits Update

  • Apache Kafka Commits Update

  • Apache Karaf Issues Notification

  • Apache Karaf Issues Notification

  • Apache Kafka Dev Discussion

  • Apache Karaf Issues Notification

  • Apache Druid Commits Update

  • Apache Kafka Dev Update

  • Apache Karaf Issues Notification

  • Apache Karaf Issues Notification

  • Apache MyFaces Dev Discussion

  • Oracle July 2022 Security Alert

  • WhiteSource Blog on CVE-2021-26291
  • Vendor Resources
  • Apache Maven User Thread

  • Oracle April 2022 Security Alert
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
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