CVE-2020-7760

NameCVE-2020-7760
DescriptionThis affects the package codemirror before 5.58.2; the package org.apache.marmotta.webjars:codemirror before 5.58.2. The vulnerable regular expression is located in https://github.com/codemirror/CodeMirror/blob/cdb228ac736369c685865b122b736cd0d397836c/mode/javascript/javascript.jsL129. The ReDOS vulnerability of the regex is mainly due to the sub-pattern (s|/*.*?*/)*
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-4789-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
codemirror-js (PTS)buster, buster (security)5.43.0-1+deb10u1fixed
bullseye5.59.2+~cs0.23.109-1fixed
bookworm5.65.0+~cs5.83.9-2fixed
sid, trixie5.65.0+~cs5.83.9-3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
codemirror-jssourcestretch(not affected)
codemirror-jssourcebuster5.43.0-1+deb10u1DSA-4789-1
codemirror-jssource(unstable)5.58.2+~cs0.23.101-1

Notes

[stretch] - codemirror-js <not-affected> (Vulnerable code added later)
https://snyk.io/vuln/SNYK-JS-CODEMIRROR-1016937
https://github.com/codemirror/CodeMirror/commit/55d0333907117c9231ffdf555ae8824705993bbb

Search for package or bug name: Reporting problems