cve/2021/CVE-2021-23362.md

23 lines
1.0 KiB
Markdown
Raw Normal View History

2024-05-25 21:48:12 +02:00
### [CVE-2021-23362](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23362)
![](https://img.shields.io/static/v1?label=Product&message=hosted-git-info&color=blue)
2025-09-29 21:09:30 +02:00
![](https://img.shields.io/static/v1?label=Version&message=unspecified%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Regular%20Expression%20Denial%20of%20Service%20(ReDoS)&color=brightgreen)
2024-05-25 21:48:12 +02:00
### Description
The package hosted-git-info before 3.0.8 are vulnerable to Regular Expression Denial of Service (ReDoS) via regular expression shortcutMatch in the fromUrl function in index.js. The affected regular expression exhibits polynomial worst-case time complexity.
### POC
#### Reference
2025-09-29 21:09:30 +02:00
- https://github.com/npm/hosted-git-info/commits/v2
2024-05-25 21:48:12 +02:00
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356
- https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355
#### Github
- https://github.com/engn33r/awesome-redos-security
- https://github.com/marcosrg9/YouTubeTV
- https://github.com/retr0-13/auditjs
- https://github.com/sonatype-nexus-community/auditjs