Jenkins uses a fork of Jelly for the vast majority of the views it renders. Since 2011, it includes a feature that lets view authors opt in or out of automatic escaping of variable values for rendering in HTML, and since 2016, the plugin build tooling requires that views explicitly specify whether to apply this automatic escaping. Details are available in the developer documentation.
Until now, if views do not declare whether to automatically escape, they were rendered without automatic escaping, and developers were expected to explicitly escape every variable reference that was not supposed to contain markup. This has resulted in a number of cross-site scripting (XSS) vulnerabilities.
For that reason, we have decided to enable this automatic escaping by default if plugins do not specify a preference. This can result in problems with some plugins if they need their output to remain unescaped. We expect that those plugins will adapt pretty quickly to this change, as the fix is typically straightforward.
The table provides a list of plugin which were affected by the Stapler Jelly security hardening in Jenkins 2.138.2 and 2.146. "Status" column reflects the current state. Note that this list is not exhaustive.
If you encounter a plugin that no longer works as expected due to the fix, please add it to the list.
More importantly, please file a bug report, if one doesn't exist, to help ensure that the appropriate plugin maintainer is informed.
|Plugin Name||Impact / behavior||Issue / pull request||Status|
|Blue Ocean||Preloading did not work, functional tests failed||Fixed in 1.8.4|
|Last Failure Version Column||Raw HTML shown instead of job link|
|Upstream Downstream Column||Raw HTML shown instead of job links|
|Hudson Page Markup Plug-in||Raw HTML code displayed in the browser||#3973|
|Dashboard View Plugin||Raw HTML code displayed in some portlets||Bug is in portlets, cannot be fixed in dashboard view plugin|
|Maven Deployment Linker||Raw HTML is shown in maven deployment links||- JENKINS-54273Getting issue details... STATUS|
|Last Success Version Column||Raw HTML shown instead of job link|
|Summary Display Plugin||Raw HTML is shown if CDATA terms are used|
|Cron Column Plugin||Raw HTML is shown in views column|