CVE-2022-1295: Fullpage.js Prototype Pollution Vulnerability
HIGHCVE-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
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).
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.
npm install fullpage.js@4.0.2
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
CVE-2022-1295 Affected Fullpage.js Versions
1 component(s)| 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?
Which Fullpage.js versions are affected?
What version fixes CVE-2022-1295?
Is fullpage.js affected?
What is the CVSS score of CVE-2022-1295?
What CWE is associated with CVE-2022-1295?
How can I check npm dependencies for CVE-2022-1295?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}