# CVE-2021-3777: Inefficient Regular Expression Complexity in daaku/nodejs-tmpl

- Severity: High 7.5 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.31%, higher than 71% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-09-15T07:15:11.000Z
- Modified: 2026-09-10T03:49:16.022Z
- Also known as: GHSA-jgrx-mgxx-jf9v
- Weaknesses: CWE-400, CWE-1333
- Assigned by: @huntrdev

## Description

nodejs-tmpl is vulnerable to Inefficient Regular Expression Complexity

(As written by CVE List.)

## Affected

- daaku daaku/nodejs-tmpl: from unspecified before 1.0.5
- tmpl (npm): before 1.0.5
- tmpl_project tmpl: before 1.0.5

## Every score

- @huntrdev: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 7.8 High `AV:N/AC:L/Au:N/C:N/I:N/A:C`

## References

- <https://huntr.dev/bounties/a07b547a-f457-41c9-9d89-ee48bee8a4df> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/daaku/nodejs-tmpl/commit/4c654e4d1542f329ed561fd95ccd80f30c6872d6> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3777> (advisory)
- <https://github.com/daaku/nodejs-tmpl> (package)

## Sources

- CVE List: [CVE-2021-3777](https://www.cve.org/CVERecord?id=CVE-2021-3777), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-jgrx-mgxx-jf9v](https://github.com/advisories/GHSA-jgrx-mgxx-jf9v), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-3777](https://nvd.nist.gov/vuln/detail/CVE-2021-3777), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3777 · Whole record: https://cve.day/CVE-2021-3777.json · Rebuilt by cve.day 2026-11-25T22:58:03.955Z
