CVE-2024-36361

Published May 24, 2024 CVSS 3.1 · 6.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-1383 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.
Github GHSA Github GHSA GHSA-3965-hpx2-q597 Pug allows JavaScript code execution if an application accepts untrusted input
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00267}

epss

{'score': 0.00148}

Subscriptions

No data.

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Feb 13, 2025, 3:59 PM
Reserved
May 24, 2024, 12:00 AM
Status
Deferred
Published
May 24, 2024, 6:15 AM
Modified
Jun 17, 2026, 7:36 AM