Home / Apache Software Foundation / Apache Maven / CVE-2021-26291
CVE-2021-26291: is it exploited, and which versions of Apache Software Foundation Apache Maven are affected and fixed?
CVE-2021-26291 is an origin not validated vulnerability in Apache Software Foundation Apache Maven. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:09 UTC). Affected: org.apache.maven:maven-compat before 3.8.1 and org.apache.maven:maven-core before 3.8.1 (GitHub advisory GHSA-2f88-5hg8-9x2x). Fixed in 3.8.1 (GitHub advisory GHSA-2f88-5hg8-9x2x). Severity: Critical (9.1, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:09 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:58 UTC.
What is CVE-2021-26291?
block repositories using http by default
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
From the CVE record by apache, last updated August 3, 2024, 20:19 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | Apache Maven | from Apache Maven through 3.8.1 |
As the CVE record by apache states it, last updated August 3, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.apache.maven:maven-compat | < 3.8.1 | 3.8.1 | GHSA-2f88-5hg8-9x2x |
| Maven | org.apache.maven:maven-core | < 3.8.1 | 3.8.1 | GHSA-2f88-5hg8-9x2x |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 15, 2023. Summary: Origin Validation Error in Apache Maven.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | maven | before 3.8.1 | application |
| quarkus | quarkus | before 1.13.5 | application |
| oracle | financial services analytical applications infrastructure | from 8.0.6.0.0 through 8.0.9.0.0 | application |
| oracle | financial services analytical applications infrastructure | from 8.1.0.0.0 through 8.1.2.0 | application |
| oracle | goldengate big data and application adapters | 23.1 | application |
NVD analysis (status Modified), last modified June 17, 2026, 03:43 UTC.
How severe is CVE-2021-26291?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N | NVD |
| Medium 6.4 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-26291 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 8.69% probability of exploitation activity in the next 30 days, percentile 95.3 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-346 Origin Validation Error
Where are the vendor advisories and references?
- https://lists.apache.org/thread.html/r9a027668558264c4897633e66bcb7784099fdec9f9b22c38c2442f00%40%3Cusers.maven.apache.org%3E x_refsource_MISC
- [maven-dev] 20210423 CVE-2021-26291: Apache Maven: block repositories using http by default mailing-list, x_refsource_MLIST
- [oss-security] 20210423 CVE-2021-26291: Apache Maven: block repositories using http by default mailing-list, x_refsource_MLIST
- [announce] 20210423 CVE-2021-26291: Apache Maven: block repositories using http by default mailing-list, x_refsource_MLIST
- [jena-dev] 20210428 FYI: Maven CVE-2021-26291 mailing-list, x_refsource_MLIST
- [jena-dev] 20210429 Re: FYI: Maven CVE-2021-26291 mailing-list, x_refsource_MLIST
- [myfaces-dev] 20210506 [GitHub] [myfaces-tobago] lofwyr14 opened a new pull request #817: build: CVE fix mailing-list, x_refsource_MLIST
- [kafka-jira] 20210520 [jira] [Created] (KAFKA-12820) Upgrade maven-artifact dependency to resolve CVE-2021-26291 mailing-list, x_refsource_MLIST
- [kafka-dev] 20210520 [jira] [Created] (KAFKA-12820) Upgrade maven-artifact dependency to resolve CVE-2021-26291 mailing-list, x_refsource_MLIST
- [kafka-jira] 20210520 [GitHub] [kafka] dongjinleekr opened a new pull request #10739: KAFKA-12820: Upgrade maven-artifact dependency to resolve CVE-2021-26291 mailing-list, x_refsource_MLIST
- [kafka-jira] 20210520 [jira] [Assigned] (KAFKA-12820) Upgrade maven-artifact dependency to resolve CVE-2021-26291 mailing-list, x_refsource_MLIST
- [kafka-jira] 20210521 [GitHub] [kafka] omkreddy merged pull request #10739: KAFKA-12820: Upgrade maven-artifact dependency to resolve CVE-2021-26291 mailing-list, x_refsource_MLIST
- [kafka-dev] 20210521 [jira] [Resolved] (KAFKA-12820) Upgrade maven-artifact dependency to resolve CVE-2021-26291 mailing-list, x_refsource_MLIST
- [kafka-commits] 20210521 [kafka] branch 2.6 updated: KAFKA-12820: Upgrade maven-artifact dependency to resolve CVE-2021-26291 mailing-list, x_refsource_MLIST
- [kafka-commits] 20210521 [kafka] branch 2.8 updated: KAFKA-12820: Upgrade maven-artifact dependency to resolve CVE-2021-26291 mailing-list, x_refsource_MLIST
- [kafka-jira] 20210521 [jira] [Resolved] (KAFKA-12820) Upgrade maven-artifact dependency to resolve CVE-2021-26291 mailing-list, x_refsource_MLIST
- [kafka-commits] 20210521 [kafka] branch 2.7 updated: KAFKA-12820: Upgrade maven-artifact dependency to resolve CVE-2021-26291 mailing-list, x_refsource_MLIST
- [kafka-users] 20210617 vulnerabilities mailing-list, x_refsource_MLIST
- [karaf-issues] 20210718 [jira] [Created] (KARAF-7224) Impact of CVE-2021-26291 on Karaf mailing-list, x_refsource_MLIST
- [karaf-issues] 20210718 [jira] [Created] (KARAF-7223) Upgrade maven artifacts to mitigate CVE-2021-26291 mailing-list, x_refsource_MLIST
- [karaf-issues] 20210719 [jira] [Commented] (KARAF-7224) Impact of CVE-2021-26291 on Karaf mailing-list, x_refsource_MLIST
- [karaf-issues] 20210719 [jira] [Assigned] (KARAF-7224) Impact of CVE-2021-26291 on Karaf mailing-list, x_refsource_MLIST
- [karaf-issues] 20210719 [jira] [Assigned] (KARAF-7223) Upgrade maven artifacts to mitigate CVE-2021-26291 mailing-list, x_refsource_MLIST
- [karaf-issues] 20210720 [jira] [Commented] (KARAF-7224) Impact of CVE-2021-26291 on Karaf mailing-list, x_refsource_MLIST
- [druid-commits] 20210809 [GitHub] [druid] abhishekagarwal87 opened a new pull request #11562: suppress CVE-2021-26291 on kafka-clients mailing-list, x_refsource_MLIST
- [kafka-jira] 20210809 [jira] [Commented] (KAFKA-12820) Upgrade maven-artifact dependency to resolve CVE-2021-26291 mailing-list, x_refsource_MLIST
- [druid-commits] 20210809 [GitHub] [druid] abhishekagarwal87 merged pull request #11562: suppress CVE-2021-26291 on kafka-clients mailing-list, x_refsource_MLIST
- [druid-commits] 20210809 [GitHub] [druid] jihoonson commented on pull request #11562: suppress CVE-2021-26291 on kafka-clients mailing-list, x_refsource_MLIST
- [karaf-issues] 20210810 [jira] [Created] (KARAF-7240) Upgrade bcprov artifacts to mitigate CVE-2020-28052 mailing-list, x_refsource_MLIST
- [karaf-issues] 20210810 [jira] [Updated] (KARAF-7240) Upgrade bcprov artifacts to mitigate CVE-2020-28052 mailing-list, x_refsource_MLIST
- [karaf-issues] 20210810 [jira] [Commented] (KARAF-7240) Upgrade bcprov artifacts to mitigate CVE-2020-28052 mailing-list, x_refsource_MLIST
- [karaf-issues] 20210816 [jira] [Updated] (KARAF-7240) Upgrade bcprov artifacts to mitigate CVE-2020-28052 mailing-list, x_refsource_MLIST
- [karaf-issues] 20210816 [jira] [Updated] (KARAF-7240) Upgrade bcprov 1.69 artifacts to mitigate CVE-2020-28052 mailing-list, x_refsource_MLIST
- [karaf-issues] 20210817 [jira] [Commented] (KARAF-7240) Upgrade bcprov 1.68 artifacts to mitigate CVE-2020-28052 mailing-list, x_refsource_MLIST
- [karaf-issues] 20210817 [jira] [Updated] (KARAF-7240) Upgrade bcprov 1.68 artifacts to mitigate CVE-2020-28052 mailing-list, x_refsource_MLIST
- [karaf-issues] 20210820 [jira] [Updated] (KARAF-7240) Upgrade bcprov 1.68 artifacts to mitigate CVE-2020-28052 mailing-list, x_refsource_MLIST
- [karaf-issues] 20210824 [jira] [Commented] (KARAF-7240) Upgrade bcprov 1.68 artifacts to mitigate CVE-2020-28052 mailing-list, x_refsource_MLIST
- [karaf-issues] 20210824 [jira] [Resolved] (KARAF-7240) Upgrade bcprov 1.68 artifacts to mitigate CVE-2020-28052 mailing-list, x_refsource_MLIST
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC
- https://lists.apache.org/thread.html/r7212b874e575e59d648980d91bc22e684906aee9b211ab92da9591f5%40%3Cdev.kafka.apache.org%3E x_refsource_MISC
- https://lists.apache.org/thread.html/rcd6c3a36f1dbc130da1b89d0f320db7040de71661a512695a8d513ac%40%3Cdev.kafka.apache.org%3E x_refsource_MISC
- https://www.whitesourcesoftware.com/resources/blog/maven-security-vulnerability-cve-2021-26291/ x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC
Who found and reported it?
- Apache Maven would like to thank Jonathan Leitschuh for highlighting the need for this change. (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- January 27, 2021
- Published
- April 23, 2021, 14:20 UTC
- CVE record updated
- August 3, 2024, 20:19 UTC by apache
- NVD
- Modified, last modified June 17, 2026, 03:43 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:58 UTC; KEV December 3, 2026, 17:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Apache Maven?
- May 23, 2022CVE-2022-29599 Apache Software Foundation Apache Maven: improper output encoding
Questions about CVE-2021-26291
Is CVE-2021-26291 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:09 UTC. FIRST's EPSS gives it a 8.69% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Apache Software Foundation Apache Maven are affected by CVE-2021-26291?
org.apache.maven:maven-compat before 3.8.1 and org.apache.maven:maven-core before 3.8.1, per the GitHub advisory GHSA-2f88-5hg8-9x2x. The tables above give every range the sources list.
Which version fixes CVE-2021-26291?
3.8.1, per the GitHub advisory GHSA-2f88-5hg8-9x2x. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-26291?
Critical (9.1, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2021-26291?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.