CVE-2022-1295: Fullpage.js Prototype Pollution Vulnerability

HIGH
Advisory Identifier: GHSA-vpgw-ffh3-648h
CVSS 7.3
CWE-1321
Published
Advisory Summary

CVE-2022-1295 is a HIGH (CVSS 7.3) prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Fullpage.js libraries in the npm ecosystem. The issue involves prototype pollution in fullpage.js. Remediation is available by upgrading affected packages to version 4.0.2.

CVE-2022-1295 at a Glance

CVE Identifier CVE-2022-1295
GHSA Identifier GHSA-vpgw-ffh3-648h
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Fullpage.js
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.3

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

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 Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2022-1295

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

fullpage.js fixed: 4.0.2
npm install fullpage.js@4.0.2
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 fullpage.js

How to Check if You Are Affected

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

npm ls fullpage.js

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

Note: The npm ls fullpage.js 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 Fullpage.js, 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

fullPage utils are available to developers using window.fp_utils. They can use these utils for their own use-case (other than fullPage) as well. However, one of the utils deepExtend is vulnerable to Prototype Pollution vulnerability. Javascript is "prototype" language which means when a new "object" is created, it carries the predefined properties and methods of an "object" with itself like toString, constructor etc. By using prototype-pollution vulnerability, an attacker can overwrite/create the property of that "object" type. If the victim developer has used that property anywhere in the code, then it will have severe effect on the application.

CVE-2022-1295 Affected Fullpage.js Versions

1 component(s)
Fixed Versions:
4.0.2
Product / Package Ecosystem Affected Versions Fixed Version
fullpage.js
npm
< 4.0.2
4.0.2

References

Frequently Asked Questions

What is CVE-2022-1295?
CVE-2022-1295 is a security vulnerability in Fullpage.js involving Prototype Pollution in fullpage.js under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Fullpage.js versions are affected?
Affected versions include releases prior to 4.0.2 across affected packages: fullpage.js.
What version fixes CVE-2022-1295?
Upgrading to 4.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is fullpage.js affected?
Yes, fullpage.js is affected in releases prior to 4.0.2. Upgrade your dependency to 4.0.2 or later.
What is the CVSS score of CVE-2022-1295?
CVE-2022-1295 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2022-1295?
CVE-2022-1295 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-2022-1295?
Run the dependency tree command: 'npm ls fullpage.js'. 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-vpgw-ffh3-648h",
  "modified" : "2022-04-22T20:20:55Z",
  "published" : "2022-04-12T00:00:38Z",
  "aliases" : [ "CVE-2022-1295" ],
  "summary" : "Prototype Pollution in fullpage.js",
  "details" : "fullPage utils are available to developers using window.fp_utils. They can use these utils for their own use-case (other than fullPage) as well. However, one of the utils deepExtend is vulnerable to Prototype Pollution vulnerability.\n\nJavascript is \"prototype\" language which means when a new \"object\" is created, it carries the predefined properties and methods of an \"object\" with itself like toString, constructor etc. By using prototype-pollution vulnerability, an attacker can overwrite/create the property of that \"object\" type. If the victim developer has used that property anywhere in the code, then it will have severe effect on the application.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "fullpage.js"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-1295"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/alvarotrigo/fullpage.js/commit/bf62492a22e5d296e63c3ed918a42fc5645a0d48"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/alvarotrigo/fullpage.js"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/3b9d450c-24ac-4037-b04d-4d4dafbf593a"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-04-22T20:20:05Z",
    "nvd_published_at" : "2022-04-11T12:15:00Z"
  }
}