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:
"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(m){var B=null;null!=m&&0<m.length&&("ER"==m.substring(0,2)?B="mxgraph.er":"sysML"==m.substring(0,5)&&(B="mxgraph.sysml"));return B};var G=mxMarker.createMarker;mxMarker.createMarker=function(m,B,K,R,U,W,Q,V,X,Y){if(null!=K&&null==mxMarker.markers[K]){var Z=this.getPackageForType(K);null!=Z&&
mxStencilRegistry.getStencil(Z)}return G.apply(this,arguments)};var P=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(m,B,K,R,U,W){"1"==mxUtils.getValue(B.style,"lineShape",null)&&m.setFillColor(mxUtils.getValue(B.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return P.apply(this,arguments)};PrintDialog.prototype.create=function(m,B){function K(){da.value=Math.max(1,Math.min(V,Math.max(parseInt(da.value),parseInt(ca.value))));ca.value=Math.max(1,Math.min(V,Math.min(parseInt(da.value),