Moderate severityOSV Advisory· Published Oct 30, 2020· Updated Sep 17, 2024
Regular Expression Denial of Service (ReDoS)
CVE-2020-7760
Description
This 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|/*.*?*/)*
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
codemirrornpm | < 5.58.2 | 5.58.2 |
Affected products
2- Range: 3.13.0, 3.14.0, 3.15.0, …
Patches
Vulnerability mechanics
References
15- github.com/advisories/GHSA-4gw3-8f77-f72cghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2020-7760ghsaADVISORY
- www.debian.org/security/2020/dsa-4789ghsavendor-advisoryx_refsource_DEBIANWEB
- github.com/codemirror/CodeMirror/commit/55d0333907117c9231ffdf555ae8824705993bbbghsax_refsource_MISCWEB
- snyk.io/vuln/SNYK-JAVA-ORGAPACHEMARMOTTAWEBJARS-1024450ghsax_refsource_MISCWEB
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1024449ghsax_refsource_MISCWEB
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1024445ghsax_refsource_MISCWEB
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCODEMIRROR-1024448ghsax_refsource_MISCWEB
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCOMPONENTS-1024446ghsax_refsource_MISCWEB
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1024447ghsax_refsource_MISCWEB
- snyk.io/vuln/SNYK-JS-CODEMIRROR-1016937ghsax_refsource_MISCWEB
- www.npmjs.com/package/codemirrorghsaWEB
- www.oracle.com//security-alerts/cpujul2021.htmlghsax_refsource_MISCWEB
- www.oracle.com/security-alerts/cpuApr2021.htmlghsax_refsource_MISCWEB
- www.oracle.com/security-alerts/cpuapr2022.htmlghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.