CVE-2022-21681

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-21681
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-21681.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-21681
Aliases
Related
Published
2022-01-14T17:15:13Z
Modified
2024-10-12T08:25:34.163481Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

Marked is a markdown parser and compiler. Prior to version 4.0.10, the regular expression inline.reflinkSearch may cause catastrophic backtracking against some strings and lead to a denial of service (DoS). Anyone who runs untrusted markdown through a vulnerable version of marked and does not use a worker with a time limit may be affected. This issue is patched in version 4.0.10. As a workaround, avoid running untrusted markdown through marked or run marked on a worker thread and set a reasonable time limit to prevent draining resources.

References

Affected packages

Debian:11 / node-marked

Package

Name
node-marked
Purl
pkg:deb/debian/node-marked?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.8.0+ds+repack-2
0.8.0+ds+repack-3

4.*

4.0.5+ds-1
4.0.5+ds-2
4.0.5+ds-3
4.0.5+ds-4
4.0.5+ds-5
4.0.9+ds+~4.0.1-1
4.0.9+ds+~4.0.1-2
4.0.12+ds+~4.0.1-1
4.0.12+ds+~4.0.1-2
4.0.16+ds+~4.0.3-1
4.0.17+ds+~4.0.3-1
4.0.18+ds+~4.0.5-1
4.1.0+ds+~4.0.6-1
4.1.0+ds+~4.0.6-2
4.2.2+ds+~4.0.7-1
4.2.3+ds+~4.0.7-1
4.2.3+ds+~4.0.7-2
4.2.3+ds+~4.0.7-3

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / node-marked

Package

Name
node-marked
Purl
pkg:deb/debian/node-marked?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.0.12+ds+~4.0.1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / node-marked

Package

Name
node-marked
Purl
pkg:deb/debian/node-marked?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.0.12+ds+~4.0.1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/markedjs/marked

Affected ranges

Type
GIT
Repo
https://github.com/markedjs/marked
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.3.14
0.3.15
0.3.9
0.4.0

v0.*

v0.0.1
v0.0.2
v0.0.3
v0.0.4
v0.0.5
v0.0.6
v0.0.7
v0.0.8
v0.0.9
v0.1.0
v0.1.1
v0.1.2
v0.1.3
v0.1.4
v0.1.5
v0.1.6
v0.1.7
v0.1.8
v0.1.9
v0.2.0
v0.2.1
v0.2.10
v0.2.2
v0.2.3
v0.2.4
v0.2.5
v0.2.6
v0.2.7
v0.2.8
v0.2.9
v0.3.0
v0.3.1
v0.3.12
v0.3.17
v0.3.18
v0.3.19
v0.3.2
v0.3.3
v0.3.4
v0.3.5
v0.3.6
v0.3.7
v0.5.0
v0.5.1
v0.5.2
v0.6.0
v0.6.1
v0.6.2
v0.6.3
v0.7.0
v0.8.0
v0.8.1
v0.8.2

v1.*

v1.0.0
v1.1.0
v1.1.1
v1.1.2
v1.2.0
v1.2.1
v1.2.2
v1.2.3
v1.2.4
v1.2.5
v1.2.6
v1.2.7
v1.2.8
v1.2.9
v1.20

v2.*

v2.0.0
v2.0.1
v2.0.2
v2.0.3
v2.0.4
v2.0.5
v2.0.6
v2.0.7
v2.1.0
v2.1.1
v2.1.2
v2.1.3

v3.*

v3.0.0
v3.0.1
v3.0.2
v3.0.3
v3.0.4
v3.0.5
v3.0.6
v3.0.7
v3.0.8

v4.*

v4.0.0
v4.0.1
v4.0.2
v4.0.3
v4.0.4
v4.0.5
v4.0.6
v4.0.7
v4.0.8
v4.0.9