{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-36361","published":"2024-05-24T06:15:08.947000Z","last_modified":"2026-06-17T07:36:34.587000Z","status":"Deferred","cvss":{"version":"3.1","score":6.8,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","primary":false},"auth":false,"cwes":["CWE-94"],"cpes":[],"cpes_truncated":false,"vendors":["pugjs"],"products":["pugjs/pug"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total"},"epss":{"score":0.00782,"percentile":0.52528,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-3965-hpx2-q597","ecosystem":"npm","name":"pug","purl":"pkg:npm/pug","ranges":[{"introduced":"0","fixed":"3.0.3"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-3965-hpx2-q597","ecosystem":"npm","name":"pug-code-gen","purl":"pkg:npm/pug-code-gen","ranges":[{"introduced":"0","fixed":"3.0.3"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":56,"links":{"html_es":"/es/cve/CVE-2024-36361/","html_en":"/en/cve/CVE-2024-36361/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-36361","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-36361"},"untrusted":{"vendor_name":"pugjs","product_name":"pug","desc_en":"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.","affected":[{"untrusted_vendor":"pugjs","untrusted_product":"pug","versions":[]}],"references":[{"url":"https://github.com/pugjs/pug/pull/3428","tags":[]},{"url":"https://pugjs.org/api/reference.html","tags":[]}]}}