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:
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"),
L=p.getAttribute("h");E=null==E?80:parseInt(E,10);L=null==L?80:parseInt(L,10);e(y,q,b,E,L)}}p=p.nextSibling}}};