Description
The package nanoid from 3.0.0 and before 3.1.31 are vulnerable to Information Exposure via the valueOf() function which allows to reproduce the last id generated.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | nanoid | unspecified – < 3.1.31 | 3.1.31 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-mocha | 9.1.4+ds1+~cs28.2.8-1 | — |
| Debian 14 | node-postcss | 8.4.5+~cs7.1.51-1 | — |
| Debian 13 | node-mocha | 9.1.4+ds1+~cs28.2.8-1 | — |
| Debian 13 | node-postcss | 8.4.5+~cs7.1.51-1 | — |
| Debian 12 | node-mocha | 9.1.4+ds1+~cs28.2.8-1 | — |
| Debian 12 | node-postcss | 8.4.5+~cs7.1.51-1 | — |
| Debian 11 | node-mocha | 8.2.1+ds1+~cs29.4.27-3+deb11u1 | DLA-4013-1 |
| Debian 11 | node-postcss | 8.2.1+~cs5.3.23-8+deb11u1 | DLA-4003-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-mocha +1 | No fix yet | — |
| Ubuntu 26.04 LTS | node-mocha +1 | No fix yet | — |
| Ubuntu 25.10 | node-mocha +1 | No fix yet | — |
| Ubuntu 24.04 LTS | node-mocha +1 | No fix yet | — |
| Ubuntu 22.04 LTS | node-mocha +1 | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | node-mocha +1 | No fix yet | — |
| Ubuntu 18.04 LTS | node-mocha | No fix yet | — |
| Ubuntu 16.04 LTS | node-mocha | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | nanoid | >= 3.0.0, < 3.1.31 | 3.1.31 | GHSA-qrpm-p2h7-hrv2 |
Advisories 3
- WID-SEC-2022-0235 Red Hat Advanced Cluster Management: Mehrere Schwachstellen ermöglichen Privilegieneskalation BSI CERT-Bund (WID) · Oct 8, 2026
- DLA-4003-1 node-postcss - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-4013-1 node-mocha - security update Debian Security (DSA / DLA) · Mar 9, 2026