CVE-2021-21658
Java vulnerability analysis and mitigation

Overview

CVE-2021-21658 is a security vulnerability discovered in the Jenkins Nuget Plugin version 1.0 and earlier. The vulnerability was identified and reported by Kevin Guerroudj, with the CVE being created on January 4, 2021, and publicly disclosed on May 25, 2021. This vulnerability affects the Jenkins Nuget Plugin's XML parser implementation, specifically in the 'Build on NuGet updates' feature (Jenkins Advisory).

Technical details

The vulnerability is classified as an XML External Entity (XXE) attack vulnerability with a Medium severity CVSS rating. The core issue stems from the plugin's failure to properly configure its XML parser to prevent XXE attacks, specifically in the 'Build on NuGet updates' feature. The vulnerability exists in version 1.0 and earlier versions of the Nuget Plugin (Jenkins Advisory).

Impact

When exploited, this vulnerability allows attackers with the ability to control the contents of the packages.config file in a workspace to have Jenkins parse a crafted XML document. This can lead to the extraction of secrets from the Jenkins controller or enable server-side request forgery attacks (Jenkins Advisory, OSS Security).

Mitigation and workarounds

The vulnerability has been fixed in Nuget Plugin version 1.1, which disables external entity resolution for its XML parser. Users are advised to update to this version to mitigate the vulnerability. The fix was released as part of the Jenkins Security Advisory on May 25, 2021 (Jenkins Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-55749HIGH8.7
  • JavaJava
  • org.xwiki.platform:xwiki-platform-tool-jetty-resources
NoYesDec 01, 2025
CVE-2025-64775HIGH7.5
  • JavaJava
  • javapackages-tools:201801::guice-servlet
NoYesDec 01, 2025
CVE-2025-13806MEDIUM6.9
  • JavaJava
  • org.nutz:nutzboot-parent
NoNoDec 01, 2025
CVE-2025-66453MEDIUM5.5
  • JavaJava
  • org.mozilla:rhino
NoYesDec 03, 2025
CVE-2025-13472MEDIUM5.3
  • JavaJava
  • com.blazemeter.plugins:blazemeterjenkinsplugin
NoYesDec 03, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management