ant-design-vue
ant-design-vue copied to clipboard
chore(deps): update dependency marked to v4 [security]
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
marked (source) | 0.3.18 -> 4.0.10 |
GitHub Vulnerability Alerts
CVE-2022-21681
Impact
What kind of vulnerability is it?
Denial of service.
The regular expression inline.reflinkSearch
may cause catastrophic backtracking against some strings.
PoC is the following.
import * as marked from 'marked';
console.log(marked.parse(`[x]: x
\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](`));
Who is impacted?
Anyone who runs untrusted markdown through marked and does not use a worker with a time limit.
Patches
Has the problem been patched?
Yes
What versions should users upgrade to?
4.0.10
Workarounds
Is there a way for users to fix or remediate the vulnerability without upgrading?
Do not run untrusted markdown through marked or run marked on a worker thread and set a reasonable time limit to prevent draining resources.
References
Are there any links users can visit to find out more?
- https://marked.js.org/using_advanced#workers
- https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS
For more information
If you have any questions or comments about this advisory:
- Open an issue in marked
CVE-2022-21680
Impact
What kind of vulnerability is it?
Denial of service.
The regular expression block.def
may cause catastrophic backtracking against some strings.
PoC is the following.
import * as marked from "marked";
marked.parse(`[x]:${' '.repeat(1500)}x ${' '.repeat(1500)} x`);
Who is impacted?
Anyone who runs untrusted markdown through marked and does not use a worker with a time limit.
Patches
Has the problem been patched?
Yes
What versions should users upgrade to?
4.0.10
Workarounds
Is there a way for users to fix or remediate the vulnerability without upgrading?
Do not run untrusted markdown through marked or run marked on a worker thread and set a reasonable time limit to prevent draining resources.
References
Are there any links users can visit to find out more?
- https://marked.js.org/using_advanced#workers
- https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS
For more information
If you have any questions or comments about this advisory:
- Open an issue in marked
GHSA-xf5p-87ch-gxw2
Versions of marked
from 0.3.14 until 0.6.2 are vulnerable to Regular Expression Denial of Service. Email addresses may be evaluated in quadratic time, allowing attackers to potentially crash the node process due to resource exhaustion.
Recommendation
Upgrade to version 0.6.2 or later.
Release Notes
markedjs/marked
v4.0.10
Bug Fixes
- security: fix redos vulnerabilities (8f80657)
v4.0.9
Bug Fixes
v4.0.8
Bug Fixes
v4.0.7
Bug Fixes
v4.0.6
Bug Fixes
v4.0.5
Bug Fixes
v4.0.4
Bug Fixes
v4.0.3
Bug Fixes
v4.0.2
Bug Fixes
v4.0.1
Bug Fixes
v4.0.0
Bug Fixes
BREAKING CHANGES
- Default export removed. Use
import { marked } from 'marked'
orconst { marked } = require('marked')
instead. -
/lib/marked.js
removed. Use/marked.min.js
in script tag instead. - When using marked in a script tag use
marked.parse(...)
instead ofmarked(...)
v3.0.8
Bug Fixes
v3.0.7
Bug Fixes
- use named exports only for ESM build (#β2226)
v3.0.6
Bug Fixes
v3.0.5
Bug Fixes
v3.0.4
Bug Fixes
v3.0.3
Bug Fixes
v3.0.2
Bug Fixes
v3.0.1
Bug Fixes
v3.0.0
Bug Fixes
- Tokenizers lex their own child tokens (#β2124) (288f1cb)
- Add module field to package.json (#β2143) (edc2e6d)
- Drop node 10 support (#β2157) (433b16f)
- Full Commonmark compliance for Lists (#β2112) (eb33d3b)
- Refactor table tokens (#β2166) (bc400ac)
BREAKING CHANGES
- Drop support for node 10.
- Add module field to package.json
- Tokenizers will create their own tokens with
this.lexer.inline(text, tokens)
. Theinline
function will queue the token creation until after all block tokens are created. - Extensions tokenizer
this
object will include thelexer
as a property.this.inlineTokens
becomesthis.lexer.inline
. - Extensions renderer
this
object will include theparser
as a property.this.parseInline
becomesthis.parser.parseInline
. -
tag
andinlineText
tokenizer function signatures have changed.
-
nptable
tokenizer is removed and merged withtable
tokenizer. -
table
tokensheader
property changed to contain an array of objects for each header cell withtext
andtokens
properties. -
table
tokenscells
property changed torows
and is an array of rows where each row contains an array of objects for each cell withtext
andtokens
properties.
v2 table
token:
{
"type": "table",
"align": [null, null],
"raw": "| a | b |\n|---|---|\n| 1 | 2 |\n",
"header": ["a", "b"],
"cells": [["1", "2"]],
"tokens": {
"header": [
[{ "type": "text", "raw": "a", "text": "a" }],
[{ "type": "text", "raw": "b", "text": "b" }]
],
"cells": [[
[{ "type": "text", "raw": "1", "text": "1" }],
[{ "type": "text", "raw": "2", "text": "2" }]
]]
}
}
v3 table
token:
{
"type": "table",
"align": [null, null],
"raw": "| a | b |\n|---|---|\n| 1 | 2 |\n",
"header": [
{
"text": "a",
"tokens": [{ "type": "text", "raw": "a", "text": "a" }]
},
{
"text": "b",
"tokens": [{ "type": "text", "raw": "b", "text": "b" }]
}
],
"rows": [
{
"text": "1",
"tokens": [{ "type": "text", "raw": "1", "text": "1" }]
},
{
"text": "2",
"tokens": [{ "type": "text", "raw": "2", "text": "2" }]
}
]
}
v2.1.3
Bug Fixes
v2.1.2
Bug Fixes
v2.1.1
Bug Fixes
v2.1.0
Features
v2.0.7
Bug Fixes
v2.0.6
Bug Fixes
v2.0.5
Bug Fixes
v2.0.4
Bug Fixes
v2.0.3
Bug Fixes
v2.0.2
Bug Fixes
v2.0.1
Bug Fixes
v2.0.0
Bug Fixes
- Join adjacent inlineText tokens (#β1926) (f848e77)
- Total rework of Emphasis/Strong (#β1864) (7293251)
BREAKING CHANGES
-
em
andstrong
tokenizers have been merged into oneemStrong
tokenizer. -
code
andtext
tokenizers do not get passed all tokens as a second parameter. - No longer supporting IE 11. IE 11 may still work but we are not committed to making sure it works with every update. We still provide an es5 version in
lib/marked.js
but some pollyfills may be needed for IE 11 in the future.
v1.2.9
Bug Fixes
v1.2.8
Bug Fixes
v1.2.7
Bug Fixes
v1.2.6
Bug Fixes
- fix atx heading and make regex safe (#β1853) (70ee29c) possible breaking change: When using the block.heading rule the text provided in capture group 2 will not be trimmed of whitespace.
- fix link with angle brackets around href (#β1851) (656c3e4)
v1.2.5
Bug Fixes
- fix em and strong starting with special char (#β1832) (f9bc93b)
- task lists not rendered when GFM is disabled (#β1825) (3942e89), closes #β1823
v1.2.4
Bug Fixes
Possible Breaking Change: When using the inline.del rule the text is provided in capture group 2 instead of 1.
v1.2.3
Bug Fixes
v1.2.2
Bug Fixes
v1.2.1
re-release of v 1.1.2 since semantic release picked up the wrong version
v1.2.0
Features
Fixes
- Fix html comments #β1739
- Fix line break #β1746
- Fix indented tables to follow gfm spec #β1748
- Fix underscore adjacent to asterisk #β1755
Dependencies
- Regenerate lock file #β1736
Documentation
- Add api dingus for babelmark #β1742
- Update docs to use static build step and clean URLs via Vercel #β1749
v1.1.2
Bug Fixes
v1.1.1
Fixes
- Fix image links with escaped brackets #β1683
- Fix async highlight not async #β1685
- Fix ordered lists that use
)
delimiter #β1704 - Pass many more Em and Strong tests #β1686 (Thanks @βcalculuschild)
Docs
- Add favicon #β1710
- Decode hash #β1712
- Clarify level of support for Markdown flavors #β1720
- Fix quick ref #β1729
Scripts
- Add
npm run rules
#β1726
v1.1.0
Features
- Add
walkTokens
option #β1664
Fixes
- Fix
renderer.code
includes space at beginning of each line of code #β1645 - Fix codespan newline #β1652
- Fix comma after underscore emphasis #β1660
- Fix loose task list with no tokens #β1674
- Add
browser
field inpackage.json
pointing to es5 output #β1661 - Add newline to rendered code with language #β1670
- Fix async highlighter walking all tokens #β1664
Docs
- Add
tokenizer
to option docs #β1662
v1.0.0
Breaking changes
- Add inline tokens to
marked.lexer
output #β1627 - Treat escape token same way as plain text tokens #β1642
- Add
Tokenizer
to allow extending token creation #β1637
Features
- Add
marked.use()
method to extend options #β1646
Fixes
- Fix intra-word emphasis can match the wrong asterisks #β1636
- Fix italics modifier (
_
) breaks links containing underscores #β1641 - Fix closing delimited * incorrect for consecutive ocurrences #β1644
Docs
- Fix lexer data token in demo #β1638
CI
v0.8.2
Fixes
Docs
- Update comment about GitHub breaks #β1620
v0.8.1
Fixes
- Fix
marked --help
#β1588 - Fix GFM Example 116 code fences #β1600
- Send inline html to renderer #β1602 (fixes #β1601)
- Improve docs example for invoking highlight.js #β1603
- Fix block-level elements breaking tables #β1598 (fixes #β1467)
- break nptables on block-level structures #β1617
v0.8.0
Breaking changes
- Remove substitutions #β1532
- Separate source into modules #β1563 #β1572 #β1573 #β1575 #β1576 #β1581
Fixes
- Fix relative urls in
baseUrl
option #β1526 - Loose task list #β1535
- Fix image parentheses #β1557
- remove module field & update devDependencies #β1581
Docs
- Update examples with es6+ #β1521
- Fix link to USING_PRO.md page #β1552
- Fix typo in USING_ADVANCED.md #β1558
- Node worker threads are stable #β1555
Dev Dependencies
v0.7.0
Security
- Sanitize
paragraph
andtext
tokens #β1504 - Fix ReDOS for links with backticks (issue #β1493) #β1515
Breaking Changes
- Deprecate
sanitize
andsanitizer
options #β1504 - Move
fences
to CommonMark #β1511 - Move
tables
to GFM #β1511 - Remove
tables
option #β1511 - Single backtick in link text needs to be escaped #β1515
Fixes
Tests
- Run tests with correct options #β1511
v0.6.3
Fixes
- Fix nested blockquotes #β1464
- Fix
<em>
issue with mixed content #β1451 - revert #β1464 #β1497
- Fix
breaks: true
#β1507
Docs
- add docs for workers #β1432
- Add security policy #β1492
- Update supported spec versions #β1491
- Update test folder descriptions #β1506
DevOps
- Use latest commit for demo master #β1457
- Update tests to commonmark 0.29 #β1465
- Update tests to GFM 0.29 #β1470
- Fix commonmark spec 57 and 40 (headings) #β1475
v0.6.2
Security
Fixes
Enhancements
CLI
- Update man page to include
--test
and fix argv parameters #β1442 - Add a
--version
flag to print marked version #β1448
Testing
v0.6.1
Fixes
- Fix parenthesis url redos #β1414
Docs
- Update demo site to use a worker #β1418
- Update devDependencies to last stable #β1409
- Update documentation about extending Renderer #β1417
- Remove
--save
option as it isn't required anymore #β1422 - Add snyk badge #β1420
v0.6.0
Breaking Changes
- Drop support for Node v0.10 and old browsers such as Internet Explorer
- You should not have any problems if using Node 4+ or a modern browser
- Add parameter
slugger
toRenderer.prototype.heading
method #β1401- You should not have any problems if you do not override this method
New Features
- Add new export
marked.Slugger
#β1401
Fixes
- Fix emphasis followed by a punctuation #β1383
- Fix bold around autolink email address #β1385
- Make autolinks case insensitive #β1384
- Make code fences compliant with Commonmark spec #β1387
- Make blockquote paragraph continuation compliant with Commonmark spec #β1394
- Make ordered list marker length compliant with Commonmark spec #β1391
- Make empty list items compliant with Commonmark spec #β1395
- Make tag escaping compliant with Commonmark spec #β1397
- Make strong/bold compliant with Commonmark spec #β1400
- Fix handling of adjacent lists #β684
- Add better error handling when token type cannot be found #β1005
- Fix duplicate heading id and non-latin characters #β1401
CLI
Docs
- Fix
breaks
option description #β1381 - Update docs to include "Since" version #β1382
- Add defibrillator badge for @βmccraveiro #β1392
Tests
- Remove old test covered by gfm/cm #β1389
v0.5.2
Bug Fixes
- Fix emphasis closing by single _ (part of left-flanking run) #β1351
- Make URL handling consistent between links and images #β1359
Other
- Add missing semicolons, add lint rule #β1340
- Make Steven (@βstyfle) a npm publisher #β1346
- Fix typo in docs: responsibility #β1364
- Add the ability to specify options on the demo page as JSON #β1357
- Show red border when JSON options are invalid #β1360
- Move license file back to root dir #β1356
- Fix builds: remove node v0.10 from travis matrix #β1366
- This does not a break compatibility in this release but it will a future release
- Add
files
key to package.json to prevent publishing unused files #β1367
v0.5.1
Security
- Fix inline code regex and prevent REDOS #β1337
- Use
@markedjs/html-differ
to prevent REDOS #β1331
Bug Fixes
- Fix typographic substitution in (pre|code|kbd|script) blocks when smartypants=true #β1335
- Fix auto-linking email address #β1338
Other
- Refactor the
escape()
function to improve performance 10-20% #β975 - Update copyright in source code #β1326
- Update benchmark tests #β1019
- Add dependency badges to readme #β1333
v0.5.0
Security
- Use rtrim, not unsafe /X+$/ #β1260
Breaking Changes
- Fix GFM empty table cells #β1262
- Fix GFM extended auto-linking requiring multiple backpedals #β1293
- Fix GFM strikethrough compatibility #β1258
- Fix issues link references and prototypes #β1299
- Fix hard line break when backslash at EOL #β1303
- Fix hyperlinks with parenthesis #β1305
- Fix loose lists #β1304
- Fix strong and em #β1315
Docs
- Fix typo in USING_ADVANCED.md #β1276
- Add pictures to AUTHORS.md #β1272
- Change badge to latest version of marked #β1300
- Change badges from shields.io to badgen.net #β1317
- Use iframe to sandbox generated html #β1295
- Add additional links into readme #β1310
- Add missing parameters for renderer methods #β1311
- Add undocumented option descriptions #β1312
- Add navigation sidebar to the docs #β1316
CI
- Change travis clone depth to 3 #β1270
v0.4.0
Security Fixes
New Features
- Add option to disable heading ids (#β1190)
- Add support for GFM Task Lists to comply with the GFM spec (#β1250)
Breaking Changes
- Fix escaping pipes in tables (#β1239)
- Fix html output for tables to match GFM spec (#β1245)
- Fix many bugs to reach parity with CommonMark spec (#β1135)
- Fix new Renderer() so it uses default options (#β1203)
- Fix text and paragraph return types (#β1248) (#β1249)
- Fix
<em>
less than 3 chars (#β1181) - Fix
<pre>
code blocks so there is no more trailing\n
(#β1266) - Fix default langPrefix to follow CommonMark standard
language-
(#β1265)
CLI Changes
Other changes
- Lint all the things (#β1185)
- Improved testing and DevOps (#β1160, #β1210, #β1220, #β1228, #β1219, #β1256)
- Update documentation and demos (#β1196, #β1197, #β1204, #β1207, #β1221, #β1233, #β1217, #β1240, #β1244, #β1253)
v0.3.19
0.3.18 did not have changes to min.
Configuration
π Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
π¦ 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.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.
Codecov Report
Merging #5164 (a185b53) into next (26f1b98) will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## next #5164 +/- ##
=======================================
Coverage 31.03% 31.03%
=======================================
Files 6 6
Lines 232 232
Branches 50 50
=======================================
Hits 72 72
Misses 154 154
Partials 6 6
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
Renovate Ignore Notification
As this PR has been closed unmerged, Renovate will ignore this upgrade and you will not receive PRs for any future 4.x releases. However, if you upgrade to 4.x manually then Renovate will reenable minor and patch updates automatically.
If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.