{"schemaVersion":3,"id":"CVE-2021-3777","aliases":["GHSA-jgrx-mgxx-jf9v","CGA-296w-jxjq-mhg4","CGA-2vmw-46xg-3mvj","CGA-mvx2-hpwp-47mf","CGA-x7v9-28h3-g3jp"],"status":"published","duplicateOf":null,"title":null,"description":"nodejs-tmpl is vulnerable to Inefficient Regular Expression Complexity","dates":{"published":"2021-09-15T07:15:11.000Z","modified":"2024-08-03T17:09:08.812Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Npm","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.8,"severity":"high","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01309,"percentile":0.70213,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.010999999999999899,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01298},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01309,"percentile":0.70213}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01298,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01309,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01309,"percentile":0.70213}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_BC8DD0982C9B0D2A","name":"Exploit Reference (huntr.dev)","source":"reference","url":"https://huntr.dev/bounties/a07b547a-f457-41c9-9d89-ee48bee8a4df","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity","description":"The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/1333.html"}],"affected":[{"vendor":"chainguard","product":"arangodb-3.11","name":"arangodb-3.11","label":"arangodb-3.11","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/arangodb-3.11","purlType":"apk","versions":[{"text":"< 3.11.14.5-r10","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.11.14.5-r10","eol":null,"hubHref":null},{"vendor":"chainguard","product":"arangodb-3.12","name":"arangodb-3.12","label":"arangodb-3.12","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/arangodb-3.12","purlType":"apk","versions":[{"text":"< 3.12.9.4-r20","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.12.9.4-r20","eol":null,"hubHref":null},{"vendor":"daaku","product":"daaku/nodejs-tmpl","name":"daaku/nodejs-tmpl","label":"daaku/nodejs-tmpl","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, < 1.0.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, < 1.0.5","eol":null,"hubHref":"/vendor/daaku/daakunodejs-tmpl"},{"vendor":"Npm","product":"tmpl","name":"tmpl","label":"tmpl","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/tmpl","purlType":"npm","versions":[{"text":"< 1.0.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.5","eol":null,"hubHref":null},{"vendor":"tmpl_project","product":"tmpl","name":"tmpl","label":"tmpl","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.0.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.5","eol":null,"hubHref":"/vendor/tmpl_project/tmpl"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://huntr.dev/bounties/a07b547a-f457-41c9-9d89-ee48bee8a4df","label":"huntr.dev/bounties/a07b547a-f457-41c9-9d89-ee48bee8a4df","hostname":"huntr.dev","tags":["X Refsource CONFIRM","WEB","FIX","Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://github.com/daaku/nodejs-tmpl/commit/4c654e4d1542f329ed561fd95ccd80f30c6872d6","label":"github.com/daaku/nodejs-tmpl/commit/4c654e4d1542f329ed561fd95ccd80f30c6872d6","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3777","label":"nvd.nist.gov/vuln/detail/CVE-2021-3777","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/daaku/nodejs-tmpl","label":"github.com/daaku/nodejs-tmpl","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-R7HC-G453-GJRJ"]},"timeline":[{"kind":"published","date":"2021-09-15T07:15:11.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T17:09:08.812Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T15:29:51.432Z","stale":false,"partial":false}}