CVE-2022-25948: Liquidjs Liquidjs May Leak Properties Of Vulnerability
MODERATECVE-2022-25948 is a MODERATE (CVSS 5.3) liquidjs may leak properties of vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Liquidjs libraries in the npm ecosystem. The issue involves liquidjs may leak properties of a prototype. Remediation is available by upgrading affected packages to version 10.0.0.
CVE-2022-25948 at a Glance
Security Impact
CVSS: 5.3
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:L/I:N/A:N).
How to Fix CVE-2022-25948
To remediate this vulnerability, upgrade all affected Liquidjs 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 liquidjs@10.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls liquidjs
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-25948, inspect your project dependencies using npm:
npm ls liquidjs
Analyze the terminal output to locate any version of Liquidjs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.0.0), your application is affected.
Note: The npm ls liquidjs 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 Liquidjs, 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-25948 Affected Liquidjs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
liquidjs
|
npm |
< 10.0.0
|
10.0.0
|
References
Frequently Asked Questions
What is CVE-2022-25948?
Which Liquidjs versions are affected?
What version fixes CVE-2022-25948?
Is liquidjs affected?
What is the CVSS score of CVE-2022-25948?
What CWE is associated with CVE-2022-25948?
How can I check npm dependencies for CVE-2022-25948?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-45rm-2893-5f49",
"modified" : "2025-04-14T22:08:07Z",
"published" : "2022-12-22T06:30:15Z",
"aliases" : [ "CVE-2022-25948" ],
"summary" : "liquidjs may leak properties of a prototype",
"details" : "The package liquidjs before 10.0.0 is vulnerable to Information Exposure when `ownPropertyOnly` parameter is set to `False`, which results in leaking properties of a prototype. Workaround For versions 9.34.0 and higher, an option to disable this functionality is provided.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "liquidjs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "10.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-25948"
}, {
"type" : "WEB",
"url" : "https://github.com/harttle/liquidjs/issues/454"
}, {
"type" : "WEB",
"url" : "https://github.com/harttle/liquidjs/commit/7e99efc5131e20cf3f59e1fc2c371a15aa4109db"
}, {
"type" : "WEB",
"url" : "https://github.com/harttle/liquidjs/commit/7eb621601c2b05d6e379e5ce42219f2b1f556208"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/harttle/liquidjs"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/u/0/a/snyk.io/g/report/c/9ipXecWRtTM/m/IgLadevtCQAJ"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-LIQUIDJS-2952868"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-12-22T20:03:15Z",
"nvd_published_at" : "2022-12-22T05:15:00Z"
}
}