# qs vulnerable to Prototype Pollution

Advisory record · `GHSA-hrpp-h998-j3pp`

- **Identifiers:** `GHSA-hrpp-h998-j3pp` · `CVE-2022-24999`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** Yes: CVSS 7+ and EPSS
- **Weakness (CWE):** [CWE-1321](https://cwe.mitre.org/data/definitions/1321.html)
- **Tags:** [Prototype pollution](https://agentprime.io/advisories/tag/prototype-pollution.md)
- **Published:** 27 Nov 2022
- **Updated:** 29 Apr 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 27 Nov 2022, 00:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 7.5 (7.0 or more) and EPSS 0.16 (0.1 or more): a high score and a real chance of exploitation in the next 30 days.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `qs` (npm): affected `>=6.10.0, <6.10.3 || >=6.9.0, <6.9.7 || >=6.8.0, <6.8.3 || >=6.7.0, <6.7.3 || >=6.6.0, <6.6.1 || >=6.5.0, <6.5.3 || >=6.4.0, <6.4.1 || >=6.3.0, <6.3.3 || <6.2.4`; fixed in `6.10.3`, `6.9.7`, `6.8.3`, `6.7.3`, `6.6.1`, `6.5.3`, `6.4.1`, `6.3.3`, `6.2.4`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.16, the 96th percentile, on 22 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 27 Nov 2022. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-hrpp-h998-j3pp](https://github.com/advisories/GHSA-hrpp-h998-j3pp)
- [OSV: GHSA-hrpp-h998-j3pp](https://osv.dev/vulnerability/GHSA-hrpp-h998-j3pp)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24999>
- <https://github.com/ljharb/qs/pull/428>
- <https://github.com/ljharb/qs/commit/4310742efbd8c03f6495f07906b45213da0a32ec>
- <https://github.com/ljharb/qs/commit/727ef5d34605108acb3513f72d5435972ed15b68>
- <https://github.com/ljharb/qs/commit/73205259936317b40f447c5cdb71c5b341848e1b>
- <https://github.com/ljharb/qs/commit/8b4cc14cda94a5c89341b77e5fe435ec6c41be2d>
- <https://github.com/ljharb/qs/commit/ba24e74dd17931f825adb52f5633e48293b584e1>
- <https://github.com/ljharb/qs/commit/e799ba57e573a30c14b67c1889c7c04d508b9105>
- <https://github.com/ljharb/qs/commit/ed0f5dcbef4b168a8ae299d78b1e4a2e9b1baf1f>
- <https://github.com/ljharb/qs/commit/f945393cfe442fe8c6e62b4156fd35452c0686ee>
- <https://github.com/ljharb/qs/commit/fc3682776670524a42e19709ec4a8138d0d7afda>
- <https://github.com/expressjs/express/releases/tag/4.17.3>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-hrpp-h998-j3pp>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-hrpp-h998-j3pp/>. Everything for agents: <https://agentprime.io/llms.txt>.
