# CVE-2022-25948: Information Exposure

> Attackers can leak prototype properties when the ownPropertyOnly parameter is disabled, exposing internal object data.

- **Severity:** Medium 5.3 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 23 Dec 2022
- **Updated:** 14 Apr 2025
- **Also known as:** GHSA-45rm-2893-5f49

## What is CVE-2022-25948?

CVE-2022-25948 is a medium-severity vulnerability in liquidjs, published on 23 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

The package liquidjs before 10.0.0 are 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.

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

## Which versions are affected by CVE-2022-25948?

2 open source packages ship an affected version, including liquidjs. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `liquidjs` | npm | All versions | 10.0.0 |
| `liquidjs` | npm | All versions | 10.0.0 |

Products: Liquidjs Liquidjs.

## How do I fix CVE-2022-25948?

Upgrade liquidjs to 10.0.0 or later.

## Is CVE-2022-25948 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-25948 exists.

## Other vulnerabilities in liquidjs

- [CVE-2026-30952](https://insights.sbomify.com/CVE-2026-30952/): liquidjs has a path traversal fallback vulnerability (high 8.7)
- [CVE-2026-35525](https://insights.sbomify.com/CVE-2026-35525/): LiquidJS has a root restriction bypass for partial and layout loading through symlinked templates (high 8.2)
- [CVE-2026-41311](https://insights.sbomify.com/CVE-2026-41311/): LiquidJS is vulnerable to Denial of Service via circular block reference in layout (high 7.5)
- [CVE-2026-33285](https://insights.sbomify.com/CVE-2026-33285/): LiquidJS: memoryLimit Bypass through Negative Range Values Leads to Process Crash (high 7.5)
- [CVE-2026-33287](https://insights.sbomify.com/CVE-2026-33287/): LiquidJS has Exponential Memory Amplification through its replace_first Filter $& Pattern (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-25948 and fix it if it is affected.

What it is: CVE-2022-25948 is a medium-severity vulnerability in liquidjs, published on 23 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-25948 exists.

Affected packages and fixed versions:
- liquidjs (npm): affected all versions; fixed in 10.0.0
- liquidjs (npm): affected all versions; fixed in 10.0.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2022-25948/ (Markdown: https://insights.sbomify.com/CVE-2022-25948/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2022-25948
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-25948
- OSV: https://osv.dev/vulnerability/CVE-2022-25948

---
From sbomify Insights: https://insights.sbomify.com/CVE-2022-25948/
Summaries are generated and may contain mistakes; the official description above is the record.
