Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ciencia/16e104455efbeceb562a674d2d335d39 to your computer and use it in GitHub Desktop.
Save ciencia/16e104455efbeceb562a674d2d335d39 to your computer and use it in GitHub Desktop.
patch MediaWiki 1.34 extension SyntaxHighlight T276843 disable Vulnerable lexers
diff --git a/SyntaxHighlight.lexers.php b/SyntaxHighlight.lexers.php
index f64672e..968dd72 100644
--- a/SyntaxHighlight.lexers.php
+++ b/SyntaxHighlight.lexers.php
@@ -11,7 +11,8 @@
'ada' => true,
'ada2005' => true,
'ada95' => true,
- 'adl' => true,
+ // Disabled because of CVE-2021-27291
+ // 'adl' => true,
'agda' => true,
'aheui' => true,
'ahk' => true,
@@ -80,12 +81,14 @@
'c++-objdumb' => true,
'c-objdump' => true,
'ca65' => true,
- 'cadl' => true,
+ // Disabled because of CVE-2021-27291
+ // 'cadl' => true,
'camkes' => true,
'capdl' => true,
'capnp' => true,
'cbmbas' => true,
- 'ceylon' => true,
+ // Disabled because of CVE-2021-27291
+ // 'ceylon' => true,
'cf3' => true,
'cfc' => true,
'cfengine3' => true,
@@ -193,12 +196,14 @@
'erb' => true,
'erl' => true,
'erlang' => true,
- 'evoque' => true,
+ // Disabled because of CVE-2021-27291
+ // 'evoque' => true,
'ex' => true,
'exs' => true,
'extempore' => true,
'ezhil' => true,
- 'factor' => true,
+ // Disabled because of CVE-2021-27291
+ // 'factor' => true,
'fan' => true,
'fancy' => true,
'felix' => true,
@@ -366,7 +371,8 @@
'live-script' => true,
'livescript' => true,
'llvm' => true,
- 'logos' => true,
+ // Disabled because of CVE-2021-27291
+ // 'logos' => true,
'logtalk' => true,
'lsl' => true,
'lua' => true,
@@ -379,8 +385,9 @@
'mask' => true,
'mason' => true,
'mathematica' => true,
- 'matlab' => true,
- 'matlabsession' => true,
+ // Disabled because of CVE-2021-27291
+ // 'matlab' => true,
+ // 'matlabsession' => true,
'mawk' => true,
'md' => true,
'menuconfig' => true,
@@ -447,7 +454,8 @@
'objj' => true,
'ocaml' => true,
'octave' => true,
- 'odin' => true,
+ // Disabled because of CVE-2021-27291
+ // 'odin' => true,
'ooc' => true,
'opa' => true,
'openbugs' => true,
@@ -572,7 +580,8 @@
'smali' => true,
'smalltalk' => true,
'smarty' => true,
- 'sml' => true,
+ // Disabled because of CVE-2021-20270
+ // 'sml' => true,
'snobol' => true,
'snowball' => true,
'sources.list' => true,
@@ -631,9 +640,10 @@
'vapi' => true,
'vb.net' => true,
'vbnet' => true,
- 'vcl' => true,
- 'vclsnippet' => true,
- 'vclsnippets' => true,
+ // Disabled because of CVE-2021-27291
+ // 'vcl' => true,
+ // 'vclsnippet' => true,
+ // 'vclsnippets' => true,
'vctreestatus' => true,
'velocity' => true,
'verilog' => true,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment