{"cve":"CVE-2024-36361","nvd":{"published":"2024-05-24T06:15:08.947","modified":"2026-06-17T07:36:34.587","status":"Deferred","description":"Pug through 3.0.2 allows JavaScript code execution if an application accepts untrusted input for the name option of the compileClient, compileFileClient, or compileClientWithDependenciesTracked function. NOTE: these functions are for compiling Pug templates into JavaScript, and there would typically be no reason to allow untrusted callers.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","score":6.8},"cwes":["CWE-94"],"references":["https://github.com/pugjs/pug/pull/3428","https://pugjs.org/api/reference.html","https://github.com/pugjs/pug/pull/3428","https://pugjs.org/api/reference.html"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:50:30.954589733+00:00"},"epss":{"cve":"CVE-2024-36361","score":0.00491,"percentile":0.42205,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-3965-hpx2-q597","url":"https://osv.dev/vulnerability/GHSA-3965-hpx2-q597","summary":"Pug allows JavaScript code execution if an application accepts untrusted input","modified":"2026-09-10T03:50:13.109375625Z","packages":[{"ecosystem":"npm","name":"pug-code-gen","purl":"pkg:npm/pug-code-gen","ranges":["<3.0.3"],"fixed":["3.0.3"]},{"ecosystem":"npm","name":"pug","purl":"pkg:npm/pug","ranges":["<3.0.3"],"fixed":["3.0.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}