Loading HuntDB...

GHSA-8hv7-4vfc-w8pg

GitHub Security Advisory

Cross-site Scripting in Jenkins TestNG Results Plugin

✓ GitHub Reviewed HIGH Has CVE

Advisory Details

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](https://www.jenkins.io/doc/book/managing/system-properties/) `hudson.plugins.testng.Publisher.allowUnescapedHTML` to true.

Affected Packages

Maven org.jenkins-ci.plugins:testng-plugin
Affected versions: 0 (fixed in 555.va0d5f66521e3)

Related CVEs

Key Information

GHSA ID
GHSA-8hv7-4vfc-w8pg
Published
July 1, 2022 12:01 AM
Last Modified
December 9, 2022 4:36 AM
CVSS Score
7.5 /10
Primary Ecosystem
Maven
Primary Package
org.jenkins-ci.plugins:testng-plugin
GitHub Reviewed
✓ Yes

Dataset

Last updated: August 25, 2025 6:33 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.