GHSA-8qm3-746x-r74r: Devalue Devalue `uneval`ed Code Can Create Vulnerability

LOW
CWE-1321
Published
Advisory Summary

GHSA-8qm3-746x-r74r is a LOW devalue `uneval`ed code can create vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Devalue libraries in the npm ecosystem. The issue involves devalue `uneval`ed code can create objects with polluted prototypes when `eval`ed. Remediation is available by upgrading affected packages to version 5.6.3.

GHSA-8qm3-746x-r74r at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-8qm3-746x-r74r
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Devalue
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-8qm3-746x-r74r

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.6.3
npm install devalue@5.6.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 GHSA-8qm3-746x-r74r, 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.6.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-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. 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

Under certain circumstances, `uneval`ing untrusted data can produce output code that will create objects with polluted prototypes when later `eval`ed, meaning the output data can be a different shape from the input data.

GHSA-8qm3-746x-r74r Affected Devalue Versions

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

References

Frequently Asked Questions

What is GHSA-8qm3-746x-r74r?
GHSA-8qm3-746x-r74r is a security vulnerability in Devalue involving devalue `uneval`ed code can create objects with polluted prototypes when `eval`ed under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Devalue versions are affected?
Affected versions include releases prior to 5.6.3 across affected packages: devalue.
What version fixes GHSA-8qm3-746x-r74r?
Upgrading to 5.6.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.6.3. Upgrade your dependency to 5.6.3 or later.
What CWE is associated with GHSA-8qm3-746x-r74r?
GHSA-8qm3-746x-r74r is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.).
How can I check npm dependencies for GHSA-8qm3-746x-r74r?
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-8qm3-746x-r74r",
  "modified" : "2026-02-19T20:29:17Z",
  "published" : "2026-02-19T20:29:17Z",
  "aliases" : [ ],
  "summary" : "devalue `uneval`ed code can create objects with polluted prototypes when `eval`ed",
  "details" : "Under certain circumstances, `uneval`ing untrusted data can produce output code that will create objects with polluted prototypes when later `eval`ed, meaning the output data can be a different shape from the input data.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "devalue"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.6.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 5.6.2"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/devalue/security/advisories/GHSA-8qm3-746x-r74r"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/devalue/commit/0f04d4d678eac39ad5d7a07d1956275d7874e81c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sveltejs/devalue"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/devalue/releases/tag/v5.6.3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-19T20:29:17Z",
    "nvd_published_at" : null
  }
}