CVE-2021-40143 — nexus-repository
HIGHCVE-2021-40143 is a high-severity (CVSS 8.2) CWE-74 vulnerability in org.sonatype.nexus:nexus-repository. A fix is available for org.sonatype.nexus:nexus-repository — see the affected versions and patch details below.
HTTP header injection in Sonatype Nexus Repository
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.sonatype.nexus:nexus-repositoryReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Sonatype Nexus Repository 3.x through 3.33.1-01 is vulnerable to an HTTP header injection. By sending a crafted HTTP request, a remote attacker may disclose sensitive information or request external resources from a vulnerable instance.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.sonatype.nexus:nexus-repository | ≥ 3.0.0&&< 3.34.0-01 | 3.34.0-01org.sonatype.nexus:nexus-repository:3.34.0-01 |
Affected Products
nexus repository managersonatypeDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.sonatype.nexus:nexus-repository, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.sonatype.nexus:nexus-repository to 3.34.0-01 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-40143 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2021-40143 in your dependencies?
Find it across Maven, including transitive dependencies.