SB2025020312 - Code Injection in pugjs Pug



SB2025020312 - Code Injection in pugjs Pug

Published: February 3, 2025 Updated: February 7, 2025

Security Bulletin ID SB2025020312
Severity
Medium
Patch available
YES
Number of vulnerabilities 1
Exploitation vector Remote access
Highest impact Data manipulation

Breakdown by Severity

Medium 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 1 security vulnerability.


1) Code Injection (CVE-ID: CVE-2024-36361)

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to Pug allows JavaScript code execution if an application accepts untrusted input for the name option of the compileClient, compileFileClient, or compileClientWithDependenciesTracked function. A remote attacker can send a specially crafted request and execute arbitrary code on the target system.


Remediation

Install update from vendor's website.