# GHSA-rvg8-pwq2-xj7q: Out-of-bounds Read in base64url

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-01T20:42:44.000Z
- Modified: 2021-09-24T20:34:56.000Z
- Weaknesses: CWE-125

## Description

Versions of `base64url` before 3.0.0 are vulnerable to to out-of-bounds reads as it allocates uninitialized Buffers when number is passed in input on Node.js 4.x and below.


## Recommendation

Update to version 3.0.0 or later.

(As written by GitHub Advisory Database.)

## Affected

- base64url (npm): before 3.0.0

## References

- <https://github.com/brianloveswords/base64url/pull/25> (web)
- <https://github.com/brianloveswords/base64url/commit/4fbd954a0a69e9d898de2146557cc6e893e79542> (web)
- <https://hackerone.com/reports/321687> (web)
- <https://github.com/brianloveswords/base64url> (package)

## Sources

- GitHub Advisory Database: [GHSA-rvg8-pwq2-xj7q](https://github.com/advisories/GHSA-rvg8-pwq2-xj7q), CC-BY-4.0, modified 2021-09-24

---

Page: https://cve.day/GHSA-rvg8-pwq2-xj7q · Whole record: https://cve.day/GHSA-rvg8-pwq2-xj7q.json · Rebuilt by cve.day 2026-11-25T22:56:46.521Z
