-
Bug
-
Resolution: Unresolved
-
Major
-
Jenkins v 2.187 Summary Display Plugin v1.15
After upgrading JENKINS from v1.121.3 to v1.187 CDATA generated HTML is no longer rendered, but instead it is displayed as raw HTML.
With Jenkins version 1.121 teh CDATA renders the HTML corectly to an image href
Sample xml generating the 'ACTIONS' example tab is attached
[JENKINS-59056] Report displays raw HTML if CDATA terms are used
Description |
Original:
After upgrading the plugin from v 1.13 the HTML is no loger rendered, but instead it is displayed as raw HTML. !image-2019-08-22-11-56-28-540.png! With the v1.13 version !image-2019-08-22-11-56-59-572.png! Sample xml generating the 'ACTIONS' example tab is attached |
New:
After upgrading the plugin from v 1.13 the HTML is no longer rendered, but instead it is displayed as raw HTML. !image-2019-08-22-11-56-28-540.png! With the v1.13 version !image-2019-08-22-11-56-59-572.png! Sample xml generating the 'ACTIONS' example tab is attached |
Description |
Original:
After upgrading the plugin from v 1.13 the HTML is no longer rendered, but instead it is displayed as raw HTML. !image-2019-08-22-11-56-28-540.png! With the v1.13 version !image-2019-08-22-11-56-59-572.png! Sample xml generating the 'ACTIONS' example tab is attached |
New:
After upgrading JENKINS from v1.121.3 to v1.187 CDATA generated HTML is no longer rendered, but instead it is displayed as raw HTML. !image-2019-08-22-11-56-28-540.png! With Jenkins version 1.121 teh CDATA renders the HTML corectly to an image href !image-2019-08-22-11-56-59-572.png! Sample xml generating the 'ACTIONS' example tab is attached |
Summary | Original: HTML in report no longer renders but displays as raw HTML | New: HTML in report displays as raw HTML if CDATA terms are used |
Summary | Original: HTML in report displays as raw HTML if CDATA terms are used | New: Report displays raw HTML if CDATA terms are used |
After some investigation and head-banging I came across what seems to be the exact cause of this bug: https://wiki.jenkins.io/display/JENKINS/Plugins+affected+by+2018-10-10+Stapler+security+hardening The Summary Display Plugin is specifically listed and the 'impact/behavior' is listed as 'Raw HTML is shown if CDATA terms are used'
They also claim that 'We expect that (affected) plugins will adapt pretty quickly to this change, as the fix is typically straightforward.'
Finally a workaround is offered, which I'm using until the plugin is fixed. See https://jenkins.io/doc/upgrade-guide/2.138/#security-hardening-to-prevent-xss-vulnerabilities