Monitor vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.1

Apache Maven uses insecure repositories by default

Exploitation likelihood: 46%
GHSA-2f88-5hg8-9x2x CVE-2021-26291 BIT-maven-2021-26291
Summary

Apache Maven may accidentally use unsecured repositories, which could let an attacker take control or pretend to be a trusted repository. This is fixed in Apache Maven versions 3.8.1 and later. If you use a repository manager, you're not affected by this.

What to do
  • Update org.apache.maven:maven-compat to version 3.8.1.
  • Update org.apache.maven:maven-core to version 3.8.1.
  • Update maven to version 3.8.1.
Affected software
VendorProductAffected versionsFix available
org.apache.maven:maven-compat <= 3.8.1 3.8.1
org.apache.maven:maven-core <= 3.8.1 3.8.1
apache maven <= 3.8.1
quarkus quarkus <= 1.13.5
oracle financial_services_analytical_applications_infrastructure > 8.0.6.0.0 , <= 8.0.9.0.0
oracle financial_services_analytical_applications_infrastructure > 8.1.0.0.0 , <= 8.1.2.0
oracle goldengate_big_data_and_application_adapters 23.1
maven <= 3.8.1 3.8.1
Original title
block repositories using http by default
Original description
Apache Maven will follow repositories that are defined in a dependency’s Project Object Model (pom) which may be surprising to some users, resulting in potential risk if a malicious actor takes over that repository or is able to insert themselves into a position to pretend to be that repository. Maven is changing the default behavior in 3.8.1+ to no longer follow http (non-SSL) repository references by default. More details available in the referenced urls. If you are currently using a repository manager to govern the repositories used by your builds, you are unaffected by the risks present in the legacy behavior, and are unaffected by this vulnerability and change to default behavior. See this link for more information about repository management: https://maven.apache.org/repository-management.html
ghsa CVSS3.1 9.1
Vulnerability type
CWE-346
Published: 10 Mar 2026 · Updated: 10 Mar 2026 · First seen: 6 Mar 2026