CVE-20XX-?
agent?

CVE-2021-21353

6.8 MEDIUM 4% exploit odds Fix listed

What it is

Pug is an npm package which is a high-performance template engine. In pug before version 3.0.1, if a remote attacker was able to control the `pretty` option of the pug compiler, e.g. if you spread a user provided object such as the query parameters of a request into the pug template inputs, it was possible for them to achieve remote code execution on the node.js backend. This is fixed in version 3.0.1. This advisory applies to multiple pug packages including "pug", "pug-code-gen". pug-code-gen has a backported fix at version 2.0.3. This advisory is not exploitable if there is no way for un-trusted input to be passed to pug as the `pretty` option, e.g. if you compile templates in advance before applying user input to them, you do not need to upgrade.

At a glance

Exploitability
Can be exploited over the network without logging in. High risk of data tampering.
Exploit odds
4.3% chance of exploitation in the next 30 days (EPSS).
Fix
A patch, advisory or fixed version is referenced. Upgrade or apply it.

Timeline

  1. PublishedDisclosed publicly on CVE.org and NVD
  2. Last updatedMost recent change to the record

Why it ranks here

Details

Published
Last modified
Exploit probability
4.3% · EPSS, next 30 days
Weakness
CWE-74
Record status
Analyzed

Affected

Attack profile CVSS 3.1 · 6.8

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None
Scope
Changed
Confidentiality
None
Integrity
High
Availability
None
Raw vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N

Is it in your code?

Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.

Read https://cve-list.com/agent/cve/CVE-2021-21353.md and follow it. Check whether this project is affected by CVE-2021-21353. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.

· More options · Status badge

Meme: I wake up, CVE-2021-21353
Download Square Reddit

Fix and advisories

References

NVD record · CVE.org record