Skip to content
Heist/ feed
HighFix available

devalue: `stringify`/`uneval` serialize shared memory

Type: advisorySource: OSV1 source record

### Impact `stringify` and `uneval` serialize a typed array by emitting its backing `ArrayBuffer`, not just the view. In the case of a Node `Buffer` object, the backing buffer is a process-wide shared pool, meaning unrelated memory can be serialized into a response that is then sent to the client. For a Node `Buffer` the backing store is Node's **process-wide shared pool**, so serializing a small `Buffer` copies up to 64 KB of unrelated process memory — including bytes from other in-flight requests — into the output. In an SSR framework (SvelteKit, Nuxt) a public page whose `load()` returns a 2-byte `Buffer`, or a small file read with `readFileSync`, ships another user's request body / `Authorization` header in its HTML. Unauthenticated, silent, ~43,000× amplification. This is serialization-side, so the `parse`/`unflatten` prototype-pollution and DoS guards do not apply — it fires on every SSR render, not only when parsing untrusted input. ### Workarounds Convert Node `Buffer` objects to `Uint8Array`: ```diff payload = { - buffer + buffer: new Uint8Array(buffer) } ```

Announced Group revision 1
Original source ↗

GHSA-j22f-vq7h-c4qm

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:GHSA-j22f-vq7h-c4qm

devalue

Source reference: /affected/0/package/name

Affected versions
Not stated in this record
Fixed versions
5.9.3

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "5.1.0"
          },
          {
            "fixed": "5.9.3"
          }
        ]
      }
    ],
    "package": {
      "name": "devalue",
      "purl": "pkg:npm/devalue",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-j22f-vq7h-c4qm/GHSA-j22f-vq7h-c4qm.json",
      "last_known_affected_version_range": "<= 5.9.2"
    }
  }
]
Related CVEs
CVE-2026-92708

Source reference: /aliases

Publisher severity

high

Source reference: /database_specific/severity

Event
#61201 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement