Advisory

GHSA-qrpm-p2h7-hrv2

Also known as: CVE-2021-23566

Summary

Exposure of Sensitive Information to an Unauthorized Actor in nanoid

Details

The package nanoid from 3.0.0, before 3.1.31, are vulnerable to Information Exposure via the valueOf() function which allows to reproduce the last id generated.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-01-21 23:57 UTC
Modified
2025-11-04 16:35 UTC

Affected packages and fixes

nanoid

npm · All systems

Affected

  • introduced 3.0.0, fixed 3.1.31 (semver)

Fixed versions

3.1.31

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences