Language: JavaScript
Label: vulnerable
CWE: CWE-1103 \u2014 Use of Platform-Dependent Third Party Components
The product relies on third-party components that do
					not provide equivalent functionality across all desirable
					platforms.

Code:
  function getModeConf(editor) {
    return editor.getModeAt(editor.getCursor()).config || CodeMirror.resolveMode("text/x-sql")
  }