Lookup for vulnerable packages by Package URL.
| Purl | pkg:npm/pug@2.0.0-beta11 |
| Type | npm |
| Namespace | |
| Name | pug |
| Version | 2.0.0-beta11 |
| Qualifiers |
|
| Subpath | |
| Is_vulnerable | true |
| Next_non_vulnerable_version | 3.0.3 |
| Latest_non_vulnerable_version | 3.0.3 |
| Affected_by_vulnerabilities |
| 0 |
| url |
VCID-1kt8-hnue-fuaf |
| vulnerability_id |
VCID-1kt8-hnue-fuaf |
| summary |
Remote code execution via the `pretty` option.
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. |
| references |
| 0 |
|
| 1 |
| reference_url |
https://api.first.org/data/v1/epss?cve=CVE-2021-21353 |
| reference_id |
|
| reference_type |
|
| scores |
| 0 |
| value |
0.01762 |
| scoring_system |
epss |
| scoring_elements |
0.82984 |
| published_at |
2026-06-09T12:55:00Z |
|
| 1 |
| value |
0.01762 |
| scoring_system |
epss |
| scoring_elements |
0.82972 |
| published_at |
2026-06-08T12:55:00Z |
|
| 2 |
| value |
0.01762 |
| scoring_system |
epss |
| scoring_elements |
0.8298 |
| published_at |
2026-06-07T12:55:00Z |
|
| 3 |
| value |
0.01857 |
| scoring_system |
epss |
| scoring_elements |
0.8339 |
| published_at |
2026-06-04T12:55:00Z |
|
| 4 |
| value |
0.01857 |
| scoring_system |
epss |
| scoring_elements |
0.83414 |
| published_at |
2026-06-05T12:55:00Z |
|
|
| url |
https://api.first.org/data/v1/epss?cve=CVE-2021-21353 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
|
| fixed_packages |
|
| aliases |
CVE-2021-21353, GHSA-p493-635q-r6gr
|
| risk_score |
4.0 |
| exploitability |
0.5 |
| weighted_severity |
8.1 |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-1kt8-hnue-fuaf |
|
| 1 |
| url |
VCID-6413-jwmk-zfc3 |
| vulnerability_id |
VCID-6413-jwmk-zfc3 |
| summary |
Pug allows JavaScript code execution if an application accepts untrusted input
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. |
| references |
| 0 |
| reference_url |
https://api.first.org/data/v1/epss?cve=CVE-2024-36361 |
| reference_id |
|
| reference_type |
|
| scores |
| 0 |
| value |
0.00363 |
| scoring_system |
epss |
| scoring_elements |
0.58713 |
| published_at |
2026-06-08T12:55:00Z |
|
| 1 |
| value |
0.00363 |
| scoring_system |
epss |
| scoring_elements |
0.58727 |
| published_at |
2026-06-09T12:55:00Z |
|
| 2 |
| value |
0.00363 |
| scoring_system |
epss |
| scoring_elements |
0.58735 |
| published_at |
2026-06-06T12:55:00Z |
|
| 3 |
| value |
0.00363 |
| scoring_system |
epss |
| scoring_elements |
0.5873 |
| published_at |
2026-06-05T12:55:00Z |
|
|
| url |
https://api.first.org/data/v1/epss?cve=CVE-2024-36361 |
|
| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
| reference_url |
https://github.com/pugjs/pug/pull/3428 |
| reference_id |
|
| reference_type |
|
| scores |
| 0 |
| value |
6.8 |
| scoring_system |
cvssv3.1 |
| scoring_elements |
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N |
|
| 1 |
| value |
MODERATE |
| scoring_system |
generic_textual |
| scoring_elements |
|
|
| 2 |
| value |
Track* |
| scoring_system |
ssvc |
| scoring_elements |
SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2024-06-06T15:59:41Z/ |
|
|
| url |
https://github.com/pugjs/pug/pull/3428 |
|
| 6 |
|
| 7 |
|
| 8 |
| reference_url |
https://pugjs.org/api/reference.html |
| reference_id |
|
| reference_type |
|
| scores |
| 0 |
| value |
6.8 |
| scoring_system |
cvssv3.1 |
| scoring_elements |
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N |
|
| 1 |
| value |
MODERATE |
| scoring_system |
generic_textual |
| scoring_elements |
|
|
| 2 |
| value |
Track* |
| scoring_system |
ssvc |
| scoring_elements |
SSVCv2/E:P/A:N/T:T/P:M/B:A/M:M/D:R/2024-06-06T15:59:41Z/ |
|
|
| url |
https://pugjs.org/api/reference.html |
|
| 9 |
|
| 10 |
|
| 11 |
|
|
| fixed_packages |
|
| aliases |
CVE-2024-36361, GHSA-3965-hpx2-q597
|
| risk_score |
3.1 |
| exploitability |
0.5 |
| weighted_severity |
6.2 |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-6413-jwmk-zfc3 |
|
|
| Fixing_vulnerabilities |
|
| Risk_score | 4.0 |
| Resource_url | http://public2.vulnerablecode.io/packages/pkg:npm/pug@2.0.0-beta11 |