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:
EditorUi.prototype.diffViewState=function(b,e){var f=b.viewState,c=e.viewState,k={};b==this.currentPage&&(f=this.editor.graph.getViewState());e==this.currentPage&&(c=this.editor.graph.getViewState());if(null!=f&&null!=c)for(var l in this.viewStateProperties)this.diffViewStateProperty(f,c,l,k);return k};EditorUi.prototype.diffViewStateProperty=function(b,e,f,c){b=JSON.stringify(this.getViewStateProperty(b,f));e=JSON.stringify(this.getViewStateProperty(e,f));b!=e&&(c[f]=e)};