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:
Editor.soundex=function(b){if(null==b||0==b.length)return"";var e=[],g=1;e[0]=b[0].toUpperCase();for(var p=1,y=b.length;p<y;p++){var q=b[p].toUpperCase().charCodeAt(0)-65;if(0<=q&&25>=q&&"0"!="01230120022455012603010202"[q]&&("01230120022455012603010202"[q]!=e[g-1]&&(e[g]="01230120022455012603010202"[q],g++),3<g))break}if(3>=g)for(;3>=g;)e[g]="0",g++;return e.join("")};mxUtils.extend(Editor,mxEventSource);Editor.prototype.originalNoForeignObject=mxClient.NO_FO;