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:
mxStencilRegistry.parseStencilSet=function(b,e,g){if("stencils"==b.nodeName)for(var n=b.firstChild;null!=n;)"shapes"==n.nodeName&&mxStencilRegistry.parseStencilSet(n,e,g),n=n.nextSibling;else{g=null!=g?g:!0;n=b.firstChild;var y="";b=b.getAttribute("name");for(null!=b&&(y=b+".");null!=n;){if(n.nodeType==mxConstants.NODETYPE_ELEMENT&&(b=n.getAttribute("name"),null!=b)){y=y.toLowerCase();var q=b.replace(/ /g,"_");g&&mxStencilRegistry.addStencil(y+q.toLowerCase(),new mxStencil(n));if(null!=e){var E=n.getAttribute("w"),
N=n.getAttribute("h");E=null==E?80:parseInt(E,10);N=null==N?80:parseInt(N,10);e(y,q,b,E,N)}}n=n.nextSibling}}};