CVE-2024-38988: @alizeait/unflatto @alizeait/unflatto Prototype Pollution Vulnerability

HIGH
Advisory Identifier: GHSA-q8jq-4rm5-4hm5
CWE-1321
Published
Advisory Summary

CVE-2024-38988 is a HIGH @alizeait/unflatto prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting @alizeait/unflatto libraries in the npm ecosystem. The issue involves @alizeait/unflatto prototype pollution. Remediation is available by upgrading affected packages to version 1.0.3.

CVE-2024-38988 at a Glance

CVE Identifier CVE-2024-38988
GHSA Identifier GHSA-q8jq-4rm5-4hm5
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product @alizeait/unflatto
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2024-38988

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

@alizeait/unflatto fixed: 1.0.3
npm install @alizeait/unflatto@1.0.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 @alizeait/unflatto

How to Check if You Are Affected

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

npm ls @alizeait/unflatto

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

Note: The npm ls @alizeait/unflatto 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 @alizeait/unflatto, 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 alizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/index.js. This vulnerability allows attackers to execute arbitrary code or cause a Denial of Service (DoS) via injecting arbitrary properties. ### Patches The problem has been patched in 1.0.3 ### References https://github.com/advisories/GHSA-799q-f2px-wx8c

CVE-2024-38988 Affected @alizeait/unflatto Versions

1 component(s)
Fixed Versions:
1.0.3
Product / Package Ecosystem Affected Versions Fixed Version
@alizeait/unflatto
npm
< 1.0.3
1.0.3

References

Frequently Asked Questions

What is CVE-2024-38988?
CVE-2024-38988 is a security vulnerability in @alizeait/unflatto involving @alizeait/unflatto Prototype Pollution under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which @alizeait/unflatto versions are affected?
Affected versions include releases prior to 1.0.3 across affected packages: @alizeait/unflatto.
What version fixes CVE-2024-38988?
Upgrading to 1.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @alizeait/unflatto affected?
Yes, @alizeait/unflatto is affected in releases prior to 1.0.3. Upgrade your dependency to 1.0.3 or later.
What CWE is associated with CVE-2024-38988?
CVE-2024-38988 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 CVE-2024-38988?
Run the dependency tree command: 'npm ls @alizeait/unflatto'. 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-q8jq-4rm5-4hm5",
  "modified" : "2025-04-01T14:54:37Z",
  "published" : "2025-04-01T14:54:36Z",
  "aliases" : [ "CVE-2024-38988" ],
  "summary" : "@alizeait/unflatto Prototype Pollution",
  "details" : "### Impact\nalizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/index.js. This vulnerability allows attackers to execute arbitrary code or cause a Denial of Service (DoS) via injecting arbitrary properties.\n\n### Patches\nThe problem has been patched in 1.0.3\n\n\n### References\nhttps://github.com/advisories/GHSA-799q-f2px-wx8c",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@alizeait/unflatto"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/alizeait/unflatto/security/advisories/GHSA-q8jq-4rm5-4hm5"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-38988"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/alizeait/unflatto/issues/32"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/alizeait/unflatto/commit/3c1b120f1dcd44eefe07d4a5022e1baa3c7164d3"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/mestrtee/4c5dfb66bea377889c44dd6c8af28713"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/alizeait/unflatto"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-01T14:54:36Z",
    "nvd_published_at" : null
  }
}