Language: JavaScript
Label: vulnerable
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
var BackgroundImageDialog=function(b,e,f,c,k){function l(){null==C||C==mxConstants.NONE?(q.style.display="none",S.checked=!1):(q.style.backgroundColor=C,q.style.display="",S.checked=!0)}var x=b.editor.graph,y=document.createElement("div");y.style.whiteSpace="nowrap";var E=document.createElement("h2");mxUtils.write(E,mxResources.get("background"));E.style.marginTop="0px";y.appendChild(E);var D=null!=f&&null!=f.originalSrc;E=!1;var z=document.createElement("input");z.style.cssText="margin-right:8px;margin-bottom:8px;";