Jenkins ElectricFlow Plugin is vulnerable to stored cross site scripting vulnerability
Date: 2022-05
Affected: maven/org.jenkins-ci.plugins:electricflow
Attack vector: xss
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2019-10335
CVE-2019-10336
CVE-2019-10337
CWE: CWE-611
CWE-79
CVSS: 5.4 (CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)

The plugin adds metadata displayed on build pages during its operations. Any user content was not escaped, resulting in a cross-site scripting vulnerability allowing users with Job/Configure permission, or attackers controlling API responses received from ElectricFlow to render arbitrary HTML and JavaScript on Jenkins build pages. Build metadata is now filtered through a HTML formatter that only allows showing basic HTML, neutralizing any unsafe data. Additionally, all builds executed after the security update is applied will now properly escape content received from ElectricFlow.


Mitigations:

Architectural layers (MAESTRO):