Update dependency highlight.js to v11 [SECURITY] - #23
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
May 15, 2021 20:24
44894b2 to
5848ab9
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
June 6, 2021 20:26
5848ab9 to
814095f
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
September 25, 2022 21:59
814095f to
b8ec5c0
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
November 20, 2022 17:36
b8ec5c0 to
44b5254
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
March 27, 2023 17:32
44b5254 to
0e59c7a
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
May 29, 2023 19:56
0e59c7a to
7c49080
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
June 1, 2023 16:09
7c49080 to
edbb22d
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
June 10, 2023 02:27
edbb22d to
c45ae59
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
June 11, 2023 08:41
c45ae59 to
7757490
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
June 14, 2023 05:32
7757490 to
079c54d
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
June 17, 2023 05:27
079c54d to
4e51773
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
June 18, 2023 14:21
4e51773 to
b988bf0
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
June 22, 2023 17:59
b988bf0 to
a0ddbc8
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
June 30, 2023 17:48
a0ddbc8 to
dabad97
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
July 18, 2023 17:45
6e14408 to
2080834
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
July 19, 2023 08:56
2080834 to
99adc0b
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
July 20, 2023 11:56
99adc0b to
c67de91
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
July 28, 2023 02:46
c67de91 to
049a919
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
July 29, 2023 04:58
049a919 to
3afa3ac
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
August 2, 2023 11:51
3afa3ac to
ad77ff2
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
August 3, 2023 17:47
ad77ff2 to
9aaf68d
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
August 10, 2023 11:57
9aaf68d to
bb457d4
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
August 11, 2023 05:59
bb457d4 to
9b4823c
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
August 23, 2023 20:59
9b4823c to
71372bf
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
August 26, 2023 11:55
71372bf to
66e8dc5
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
August 27, 2023 08:55
66e8dc5 to
cf36a2f
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
August 28, 2023 05:28
cf36a2f to
27219ff
Compare
renovate
Bot
force-pushed
the
renovate/npm-highlight.js-vulnerability
branch
from
September 20, 2023 12:01
27219ff to
a365502
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^9.12.0→^11.0.0ReDOS vulnerabities: multiple grammars
GHSA-7wwv-vh3v-89cq
More information
Details
Impact: Potential ReDOS vulnerabilities (exponential and polynomial RegEx backtracking)
oswasp:
If are you are using Highlight.js to highlight user-provided data you are possibly vulnerable. On the client-side (in a browser or Electron environment) risks could include lengthy freezes or crashes... On the server-side infinite freezes could occur... effectively preventing users from accessing your app or service (ie, Denial of Service).
This is an issue with grammars shipped with the parser (and potentially 3rd party grammars also), not the parser itself. If you are using Highlight.js with any of the following grammars you are vulnerable. If you are using
highlightAutoto detect the language (and have any of these grammars registered) you are vulnerable. Exponential grammars (C, Perl, JavaScript) are auto-registered when using the common grammar subset/libraryrequire('highlight.js/lib/common')as of 10.4.0 - see https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.4.0/build/highlight.jsAll versions prior to 10.4.1 are vulnerable, including version 9.18.5.
Grammars with exponential backtracking issues:
And of course any aliases of those languages have the same issue. ie:
hppis no safer thancpp.Grammars with polynomial backtracking issues:
And again: any aliases of those languages have the same issue. ie:
rubyandrbshare the same ruby issues.Patches
Workarounds / Mitigations
References
For more information
If you have any questions or comments about this advisory:
Severity
Medium
References
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
highlightjs/highlight.js (highlight.js)
v11.12.0Compare Source
Parser Engine:
New Grammars:
.desktop/ systemd) grammar gg582Core Grammars:
atomic_*type names, not C11 atomic functions, issue #3837 Mark Xian#include, issue #3505 Pabloblockandendblockkeywords Anonymous Maarten3rdparty), issue #4170 Mark Xian//as a regex literal Zain Asif_of an identifier, issue #4258 Sarath Francisunicode-rangevalues Konstantin Baltsatbatchas an alias, issue #4395 Hashim Khanwherein GADT and closed type-family declarations, issue #3753 Konstantin Baltsatselfto built-in variables Dsaquelktmandktxaliases DarkMatter-999globalkeyword Nibiri***or___thematic break as the start of bold text, issue #3719 Mayank Guptaaiterandanext(3.10),frozendictandsentinel(3.15) Hugo van Kemenadelazy importsyntax from PEP 810 Peter Bierma::as a symbol, issue #4294 Hashim Khansafekeyword Frances Wingerterrawborrow operator in keywords Shiva Kiran Koninty\\and\"char-literal escapes so highlighting doesn't leak, issue #4351 Sarath FrancisDocumentation:
phpandphp-templateZain Asifpwshalias for PowerShell helpimnotdrowningnpm iProliecanThemes:
Build / Tooling:
Mode.keywordsKJyang-0114@colors/colorswith ansis webdiscusCONTRIBUTORS
v11.11.2Compare Source
Parser Engine:
New Grammars:
Core Grammars:
parallelkeyword, allow[]for Ada 2022 Max Reznik?'char literal and missingdefguardpkeyword Kevin Blochunicode-rangeparsing, issue #4253 Kerry ShetlineDocumentation:
highlightdeprecated message Brandon DongThemes:
Themes:
Night Coder Ashtheme Ashkan ShirpourNight Coder Charcoaltheme Ashkan ShirpourNight Coder Embertheme Ashkan ShirpourNight Coder Flametheme Ashkan ShirpourPapertheme Ashkan ShirpourIcetheme Ashkan ShirpourCONTRIBUTORS
v11.11.1Compare Source
v11.11.0Compare Source
CAVEATS / POTENTIALLY BREAKING CHANGES
Core Grammars:
\Josh Goebel$()expressions aneesh98anchor-name,aspect-ratio,backdrop-filter,container,margin-trim,place-content,scroll-timeline, ...) BaliBalofile,args,dynamic,record,requiredandscopedAlvin JoytimeandcoprocÁlvaro Mondéjar|=operator false positives (as block arguments) Aboobacker MKaddbuiltin [h7x4][]oras builtin instead of literal [h7x4][]'''string escapes [h7x4][]"and''strings [h7x4][]conceptanddeferto list of Nim keywords Jake LeahyNew Grammars:
Developer Tools:
Themes:
Rosé Pinetheme William WilkinsonCybertopia Cherrytheme Alexandre ZANNICybertopia Dimmertheme Alexandre ZANNICybertopia Icecaptheme Alexandre ZANNICybertopia Saturatedtheme Alexandre ZANNIImprovements:
CONTRIBUTORS
v11.10.0Compare Source
CAVEATS / POTENTIALLY BREAKING CHANGES
Core Grammars:
satisfiesoperator Kisaragi Hiuorconflicts with string highlighting Mohamed Aliselfvariable [Lee Falin][]gototo be recognized as a keyword in Java Alvin JoysudoAlvin Joynewkeyword without capturing it within variables/class names Cameron Taylor_separators, add hex p exponents Lisa Ugrayjustify-itemsandjustify-selfattributes Vasily Polovnyovaccent-color,appearance,color-scheme,rotate,scaleandtranslateattributes Carl Räftingselect,option,optgroup,pictureandsourceto list of known tags Vasily Polovnyovinset,inset-*,border-start-*-radiusandborder-end-*-radiusattributes Vasily Polovnyovtext-decoration-skip-ink,text-decoration-thicknessandtext-underline-offsetattributes Vasily Polovnyovwhento be recognized as a keyword in Java Chiel van de SteegNew Grammars:
Developer Tool:
highlightAPI [Misha Kaletsky][]Themes:
1c-lighttheme a like in the IDE 1C:Enterprise 8 (for 1c) Vitaly Barilkov11.9.0Compare Source
CAVEATS / POTENTIALLY BREAKING CHANGES
nodebuildstyles/*.cssfiles now ship un-minifiedwith minified counterparts as:
styles/*.min.cssmvorisek(this makes things consistent with our
cdnbuilds)Parser:
New Grammars:
Core Grammars:
ifwhilefor[Omar Hussein][]x0-x30andw0-w30ARMv8 registers Nicholas Thompsonfinal,is,macrokeywords and$identifiers Robert Borgheseabstractdeclaration from keyword Robert Borghesemacrokeyword Bradley Mackey@uncheckedand@Sendablesupport Bradley Mackey//> using foo bar[Jamie Thompson][]!assertcompiler flag [idleberg][]eprintln!macro qoheniacwarn_unqualified_accessis an attribute Bradley Mackeyrecordandvaras keywords Guillaume LaforgeDeveloper Tool:
highlightAPI. Shah Shabbir Ahmmedv11.8.0Compare Source
Parser engine:
__emitTokenskey to grammars to allow then to direct their own parsing, only using Highlight.js for the HTML rendering Josh GoebelremovePluginapi faga295JavaScriptCyrus KaoNew Grammars:
Core Grammars:
_in variable names [joshgoebel][]protoalias for Protobuf [dimitropoulos][]base,interface,sealed, andwhenkeywords Sam Rawlins->operator legal) Keyacomselectanduntilas keywordsv11.7.0Compare Source
New Grammars:
Grammars:
scmalias for Scheme matyklug18<T =are not JSX Josh Goebel((keyword Nick Chambersimport()as a function, rather a keyword nathnolt((keyword Nick ChambersImprovements:
v11.6.0Compare Source
Supported Node.js versions:
Default build changes:
wasmto default:commonbuild (#3526) [Josh Goebel][]graphqlto default:commonbuild (#3526) [Josh Goebel][]Grammars:
keywordtoliteralshikhar13012001scopedkeyword in C# (#3571) [David Pine][]transparentkeyword Matt Bovel::(#3540) [Josh Goebel][]include_bytes!macro (#3541) Serial-ATA==as a variable declaration Mousetailanykeyword (#3515) Bradley Mackeydistributedkeyword Marcus Ortizmatchandcasekeywords Avrumy Lungerv11.5.1: Version 11.5.1Compare Source
Just a tiny release to hopefully fix the issues some are having with CSS not seen as having side effects with web pack, etc...
Packaging:
sideEffectfor css and scss files, fixes #3504v11.5.0Compare Source
Themes:
Tokyo-Night-darktheme Henri VandersleyenTokyo-Night-lighttheme Henri Vandersleyenpanda-syntax-darktheme Annmarie Switzerpanda-syntax-lighttheme Annmarie SwitzerNew Grammars:
Grammars:
typeandvariable.languagescopes Josh Goebel$pattern(numbers allowed in command names) Martin Mattelmeta.promptscope for REPL prompts, etc Josh Goebel***Hello world***without breaking Josh GoebelelseJosh Goebelv11.4.0Compare Source
New Language:
Themes:
Defaultis now much closer WCAG AA (contrast) (#3402) Josh GoebelDarknow meets WCAG AA (contrast) (#3402) Josh Goebelintellij-lighttheme Pegasisfelipectheme Felipe ContrerasThese changes should be for the better and should not be super noticeable but if you're super picky about your colors you may want to intervene here or copy over the older themes from 11.3 or prior.
Grammars:
vector<<template false positive (#3437) Josh Goebelnamespaceandusehighlighting (#3427) Josh Goebel$thisis avariable.languagenow (#3427) Josh Goebel__COMPILER_HALT_OFFSET__(#3427) Josh Goebelsealedandnon-sealedkeywords (#3386) Bradley MackeyCLASS_REFERENCE(#3411) Josh Goebel!(#3417) idleberg!(#3420) idlebergcommentmacro catches more than it should (#3395)$in symbol breaks highlightingregexmode to regex literalpunctuationmode for commas.jldoctestalias (#3432) Fons van der PlasDeveloper Tools:
Themes:
v11.3.1Compare Source
Build:
v11.3.0Compare Source
Build:
HighlightJSnamed export (#3295) Josh Goebel.defaultnamed export to CJS builds (#3333) Josh GoebelParser:
throwUnescapedHTMLto warn against potential HTML injection Josh Goebelregexhelper functions viahljsinjection Josh GoebelGrammars:
class X extends Y(#3278) Josh GoebelFloat32Arrayhighlighted incorrectly (#3353) Josh Goebelerrortype Josh GoebelSUBSTis no longer highlighted Josh Goebelxor_eqkeyword highlighting. [Denis Kovalchuk][]doandthenkeyword (#3323) [Nicolas Stucki][]enum,exportandgivenkeywords (#3328) [Nicolas Stucki][]extensionsoft keyword (#3326) [Nicolas Stucki][]endsoft keyword (#3327) [Nicolas Stucki][]inlinesoft keyword (#3329) [Nicolas Stucki][]usingsoft keyword (#3330) [Nicolas Stucki][]f#alias (#3337) [Bahnschrift][]case_insensitivetotrue(#3351) idlebergConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.