Language: JavaScript
Label: vulnerable
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

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