Every CVE Search/ Get API key

CVE-2022-34778

Cross-site Scripting in Jenkins TestNG Results Plugin

5.4 MediumFix available

Jenkins TestNG Results Plugin 554.va4a552116332 and earlier renders the unescaped test descriptions and exception messages provided in test results if certain job-level options are set, resulting in a cross-site scripting (XSS) vulnerability exploitable by attackers able to configure jobs or control test results.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
Required

What an attacker can affect

Confidentiality
Low
Integrity
Low
Availability
None

Exploit likelihood

0.61%Down 0.3 points since Jul 1, 2022
90%50%10%1%

What each source reports

NVD Score used 5.4

Jenkins TestNG Results Plugin 554.va4a552116332 and earlier renders the unescaped test descriptions and exception messages provided in test results if certain job-level options are set, resulting in a cross-site scripting (XSS) vulnerability exploitable by attackers able to configure jobs or control test results.

Record
CVE-2022-34778
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
CVSS 2.0
3.5 LowAV:N/AC:M/Au:S/C:N/I:P/A:N
Weakness
CWE-79
Updated
2026-11-02
CVE List No score

Jenkins TestNG Results Plugin 554.va4a552116332 and earlier renders the unescaped test descriptions and exception messages provided in test results if certain job-level options are set, resulting in a cross-site scripting (XSS) vulnerability exploitable by attackers able to configure jobs or control test results.

Record
CVE-2022-34778
Updated
2026-11-02
EUVDEUVD-2022-6292 No score

Jenkins TestNG Results Plugin 554.va4a552116332 and earlier renders the unescaped test descriptions and exception messages provided in test results if certain job-level options are set, resulting in a cross-site scripting (XSS) vulnerability exploitable by attackers able to configure jobs or control test results.

Record
EUVD-2022-6292
Updated
2026-11-03
GitHub AdvisoriesGHSA-8hv7-4vfc-w8pg 8.0

Cross-site Scripting in Jenkins TestNG Results Plugin

TestNG Results Plugin has options in its post-build step configuration to not escape test descriptions and exception messages. If those options are unchecked, TestNG Results Plugin 554.va4a552116332 and earlier renders the unescaped text provided in test results. This results in a cross-site scripting (XSS) vulnerability exploitable by attackers able to configure jobs or control test results. TestNG Results Plugin 555.va0d5f66521e3 by default ignores the user-level options to not escape content. Administrators who want to restore this functionality must set the Java system property hudson.plugins.testng.Publisher.allowUnescapedHTML to true.

Record
GHSA-8hv7-4vfc-w8pg
CVSS 3.1
8.0 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-79
Updated
2026-11-02
OSVGHSA-8hv7-4vfc-w8pg 8.0

Cross-site Scripting in Jenkins TestNG Results Plugin

TestNG Results Plugin has options in its post-build step configuration to not escape test descriptions and exception messages. If those options are unchecked, TestNG Results Plugin 554.va4a552116332 and earlier renders the unescaped text provided in test results. This results in a cross-site scripting (XSS) vulnerability exploitable by attackers able to configure jobs or control test results. TestNG Results Plugin 555.va0d5f66521e3 by default ignores the user-level options to not escape content. Administrators who want to restore this functionality must set the Java system property hudson.plugins.testng.Publisher.allowUnescapedHTML to true.

Record
GHSA-8hv7-4vfc-w8pg
CVSS 3.1
8.0 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-79
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.jenkins-ci.plugins:testng-plugin
Maven
through 554.va4a552116332
555.va0d5f66521e3
org.jenkins-ci.plugins:testng-plugin
Maven
before 555.va0d5f66521e3, plus listed versions
0.160.170.180.190.20
Show 32 moreShow less
0.210.220.230.240.250.260.270.280.290.300.310.320.331.01.11.101.111.121.131.141.151.21.31.41.51.61.71.81.91.9.1552.va20eb2369116554.va4a552116332
555.va0d5f66521e3

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2022-34778 is a medium vulnerability (CVSS 5.4) in Jenkins Testng Results, published June 30, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.61%, the 49th percentile. Fixed in org.jenkins-ci.plugins:testng-plugin 555.va0d5f66521e3.

References

MoveEnter Open