UBUNTU-CVE-2022-21681

Source
https://ubuntu.com/security/CVE-2022-21681
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21681.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2022-21681
Upstream
Published
2022-01-14T17:15:00Z
Modified
2025-09-08T16:49:59Z
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
  • 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
  • Ubuntu - medium
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

Ubuntu:22.04:LTS

node-marked

Package

Name
node-marked
Purl
pkg:deb/ubuntu/node-marked@4.0.12+ds+~4.0.1-2ubuntu2?arch=source&distro=jammy

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-5
4.0.9+ds+~4.0.1-2
4.0.12+ds+~4.0.1-1
4.0.12+ds+~4.0.1-2ubuntu1
4.0.12+ds+~4.0.1-2ubuntu2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libjs-marked",
            "binary_version": "4.0.12+ds+~4.0.1-2ubuntu2"
        },
        {
            "binary_name": "node-marked",
            "binary_version": "4.0.12+ds+~4.0.1-2ubuntu2"
        }
    ]
}

Ubuntu:24.04:LTS

node-marked

Package

Name
node-marked
Purl
pkg:deb/ubuntu/node-marked@4.2.3+ds+~4.0.7-3?arch=source&distro=noble

Affected ranges

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

Affected versions

4.*

4.2.3+ds+~4.0.7-2ubuntu1
4.2.3+ds+~4.0.7-3

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libjs-marked",
            "binary_version": "4.2.3+ds+~4.0.7-3"
        },
        {
            "binary_name": "node-marked",
            "binary_version": "4.2.3+ds+~4.0.7-3"
        }
    ]
}

Ubuntu:25.04

node-marked

Package

Name
node-marked
Purl
pkg:deb/ubuntu/node-marked@4.2.3+ds+~4.0.7-3?arch=source&distro=plucky

Affected ranges

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

Affected versions

4.*

4.2.3+ds+~4.0.7-3

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libjs-marked",
            "binary_version": "4.2.3+ds+~4.0.7-3"
        },
        {
            "binary_name": "node-marked",
            "binary_version": "4.2.3+ds+~4.0.7-3"
        }
    ]
}

Ubuntu:Pro:16.04:LTS

node-marked

Package

Name
node-marked
Purl
pkg:deb/ubuntu/node-marked@0.3.2+dfsg-1?arch=source&distro=esm-apps/xenial

Affected ranges

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

Affected versions

0.*

0.3.2+dfsg-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libjs-marked",
            "binary_version": "0.3.2+dfsg-1"
        },
        {
            "binary_name": "node-marked",
            "binary_version": "0.3.2+dfsg-1"
        }
    ]
}

Ubuntu:Pro:18.04:LTS

node-marked

Package

Name
node-marked
Purl
pkg:deb/ubuntu/node-marked@0.3.9+dfsg-1?arch=source&distro=esm-apps/bionic

Affected ranges

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

Affected versions

0.*

0.3.6+dfsg-1
0.3.9+dfsg-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libjs-marked",
            "binary_version": "0.3.9+dfsg-1"
        },
        {
            "binary_name": "node-marked",
            "binary_version": "0.3.9+dfsg-1"
        }
    ]
}

Ubuntu:Pro:20.04:LTS

node-marked

Package

Name
node-marked
Purl
pkg:deb/ubuntu/node-marked@0.5.1+dfsg-1?arch=source&distro=esm-apps/focal

Affected ranges

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

Affected versions

0.*

0.5.1+dfsg-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libjs-marked",
            "binary_version": "0.5.1+dfsg-1"
        },
        {
            "binary_name": "node-marked",
            "binary_version": "0.5.1+dfsg-1"
        }
    ]
}