Skip to main content
← All vulnerabilities
CVE-2024-36361GHSA-3965-HPX2-Q597

Pug through 3.0.2 allows JavaScript code execution if an application accepts untrusted input for the name option of the compileClient, compi

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.0.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • pug-code-gennpm

    fixed in 3.0.3

  • pugnpm

    fixed in 3.0.3

References 2

GitHub · pugjs/pug

pugjs.org