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,f,m,d,u){function v(){null==z||z==mxConstants.NONE?(n.style.display="none",S.checked=!1):(n.style.backgroundColor=z,n.style.display="",S.checked=!0)}var E=b.editor.graph,F=document.createElement("div");F.style.whiteSpace="nowrap";var L=document.createElement("h2");mxUtils.write(L,mxResources.get("background"));L.style.marginTop="0px";F.appendChild(L);var N=null!=m&&null!=m.originalSrc;L=!1;var H=document.createElement("input");H.style.cssText="margin-right:8px;margin-bottom:8px;";