Skip to content

GHSA-45rm-2893-5f49 CVE-2022-25948

liquidjs may leak properties of a prototype

Medium npm
Severity
5.3 / 10
Medium · CVSS 3.1
Exploit chance (EPSS)
1.01%
Chance of exploitation in the next 30 days. Higher than 63.02% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
Fix
10.0.0
Upgrade liquidjs to this version or later

Description

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.

Affected versions

npm

PackageVulnerableFixed in
liquidjs
< 10.0.0
10.0.0

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

liquidjs npm → 10.0.0

npm
npm install liquidjs@10.0.0
yarn
yarn add liquidjs@10.0.0
pnpm
pnpm add liquidjs@10.0.0

Severity breakdown

CVSS 3.1 5.3

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Weakness

CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.

How to prevent it
  • Architecture and Design: Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

References

Timeline

  1. Published
  2. Last updated by the source
  3. Latest EPSS score
AdvisorySeverityWhy it's related
GHSA-fwxr-j5w2-587m
LiquidJS: ownPropertyOnly bypass for inherited array indices in first/last/join/reverse/slice/compact, `.first`/`.last`, negative index, and for-loop iteration
Medium Also affects liquidjs
GHSA-4r6h-5v86-94p3
LiquidJS: Uncontrolled Resource Consumption in `join` filter allows template authors to bypass `memoryLimit` and crash the process
High Also affects liquidjs
GHSA-m7fp-h3p4-hr49
LiquidJS has an infinite loop vulnerability in its `strip_html` filter
High Also affects liquidjs
GHSA-g357-x5c3-c72p
LiquidJS: `pop` filter bypasses `memoryLimit` accounting that its array-filter siblings enforce
High Also affects liquidjs
GHSA-gf2q-c269-pqgc
LiquidJS is Vulnerable to Remote Code Execution
Critical Also affects liquidjs
GHSA-r7g9-xpmj-5fcq
LiquidJS Vulnerable to ReDoS via Quadratic Backtracking in `strip_html` Filter Regex
High Also affects liquidjs
GHSA-hh27-hf48-9f5q
LiquidJS has a memory and render limit bypass via unbounded width padding in `date` filter (strftime)
High Also affects liquidjs
GHSA-9x9p-qf8f-mvjg
LiquidJS's `{% render %}` tag silently bypasses per-render `ownPropertyOnly:true` via `Context.spawn()`
Medium Also affects liquidjs
Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor