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