Vulnerabilities in pkg:npm/devalue

PACKAGE
Advisory Identifier: GHSA-j22f-vq7h-c4qm
Advisory Summary

CVE-2026-92708 is a HIGH (CVSS 7.5) `stringify`/`uneval` serialize shared memory vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting devalue libraries in the npm ecosystem. The issue involves `stringify`/`uneval` serialize shared memory. Remediation is available by upgrading affected packages to version 5.9.3.

16 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/devalue

16 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/devalue. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-j22f-vq7h-c4qm CVE-2026-92708 HIGH devalue: `stringify`/`uneval` serialize shared memory
GHSA-hx4r-w6wj-j8fg - MODERATE devalue: Residual sparse-array CPU amplification in uneval
GHSA-mcm9-63f2-9j32 - HIGH devalue: Repeated primitive strings cause quadratic expansion in uneval
GHSA-wf3x-273g-mvxv - LOW devalue: Sparse arrays emitted by uneval cause eager allocation when evaluated
GHSA-r9w8-h9r3-54w4 - HIGH devalue: Custom ArrayBuffer revivers can bypass typed-array allocation validation
GHSA-x5rw-q4pp-hg5g - HIGH devalue: stringifyAsync can cause an unhandled rejection despite a caught returned promise
GHSA-4q55-j62x-fr9h - MODERATE devalue: Malformed null-prototype object keys bypass __proto__ rejection via property-key coercion
GHSA-9rgm-9g3h-6x36 CVE-2026-81176 MODERATE Svelte devalue: DoS via malformed input
GHSA-mwv9-gp5h-frr4 - LOW Sveltejs devalue's `devalue.parse` and `devalue.unflatten` emit objects with `__proto__` own properties
GHSA-77vg-94rm-hx3p CVE-2026-42570 HIGH Svelte devalue: DoS via sparse array deserialization
GHSA-cfw5-2vxh-hr84 CVE-2026-30226 MODERATE devalue has prototype pollution in devalue.parse and devalue.unflatten
GHSA-33hq-fvwr-56pm - LOW devalue affected by CPU and memory amplification from sparse arrays
GHSA-8qm3-746x-r74r - LOW devalue `uneval`ed code can create objects with polluted prototypes when `eval`ed
GHSA-vw5p-8cq8-m7mv CVE-2026-22774 HIGH Devalue is vulnerable to denial of service due to memory exhaustion in devalue.parse
GHSA-g2pg-6438-jwpf CVE-2026-22775 HIGH devalue vulnerable to denial of service due to memory/CPU exhaustion in devalue.parse
GHSA-vj54-72f3-p5jv CVE-2025-57820 HIGH devalue prototype pollution vulnerability

CVE-2026-92708 at a Glance

CVE Identifier CVE-2026-92708
GHSA Identifier GHSA-j22f-vq7h-c4qm
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product devalue
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-92708

To remediate this vulnerability, upgrade all affected devalue dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

devalue fixed: 5.9.3
npm install devalue@5.9.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls devalue

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-92708, inspect your project dependencies using npm:

npm ls devalue

Analyze the terminal output to locate any version of devalue in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.9.3), your application is affected.

Note: The npm ls devalue command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In devalue, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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) } ```

CVE-2026-92708 Affected devalue Versions

1 component(s)
Fixed Versions:
5.9.3
Product / Package Ecosystem Affected Versions Fixed Version
devalue
npm
≥ 5.1.0
< 5.9.3
5.9.3

References

Frequently Asked Questions

What is CVE-2026-92708?
CVE-2026-92708 is a security vulnerability in devalue involving `stringify`/`uneval` serialize shared memory under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which devalue versions are affected?
Affected versions include releases prior to 5.9.3 across affected packages: devalue.
What version fixes CVE-2026-92708?
Upgrading to 5.9.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is devalue affected?
Yes, devalue is affected in releases prior to 5.9.3. Upgrade your dependency to 5.9.3 or later.
What is the CVSS score of CVE-2026-92708?
CVE-2026-92708 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2026-92708?
CVE-2026-92708 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check npm dependencies for CVE-2026-92708?
Run the dependency tree command: 'npm ls devalue'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-j22f-vq7h-c4qm",
  "modified" : "2026-10-01T15:18:06Z",
  "published" : "2026-10-01T15:18:06Z",
  "aliases" : [ "CVE-2026-92708" ],
  "summary" : "devalue: `stringify`/`uneval` serialize shared memory",
  "details" : "### Impact\n\n`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.\n\nThis 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.\n\n### Workarounds\n\nConvert Node `Buffer` objects to `Uint8Array`:\n\n```diff\npayload = {\n- buffer\n+ buffer: new Uint8Array(buffer)\n}\n```",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "devalue"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.1.0"
      }, {
        "fixed" : "5.9.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 5.9.2"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/devalue/security/advisories/GHSA-j22f-vq7h-c4qm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-92708"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/devalue/commit/46dc877b3570dafb1cd3291b9bb48cecef8f7266"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sveltejs/devalue"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/devalue/releases/tag/v5.9.3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-226" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-01T15:18:06Z",
    "nvd_published_at" : "2026-09-18T20:17:30Z"
  }
}