# Reflected Cross-site Scripting in yiisoft/yii2 Debug mode

Advisory record · `GHSA-qg5r-95m4-mjgj`

- **Identifiers:** `GHSA-qg5r-95m4-mjgj` · `CVE-2024-32877` · `PKSA-wtwk-rjc8-8k5p`
- **State:** Confirmed
- **Severity:** CVSS 4.2 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 2 Jun 2024
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 2 Jun 2024, 22:27 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `yiisoft/yii2` (Packagist): affected `>=2.0.43, <2.0.49.4`; fixed in `2.0.49.4`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The yiisoft/yii2 framework, versions from 2.0.43 before 2.0.49.4, contains a reflected cross-site scripting flaw in the debug-mode stack trace page, where argument values are shown in a title attribute that does not escape double quotes. An attacker who can make the application throw an exception while debug mode is on (YII_DEBUG true, with zend.exception_ignore_args set to Off) and then get a victim to open a crafted link could run JavaScript in the victim's session on the site. Upgrade to yiisoft/yii2 2.0.49.4, which is the listed fixed version.

Written 31 Oct 2026.

## 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

- 4.2 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`, from CNA (GitHub_M)

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

## Timeline

- 31 Oct 2026, 14:03 UTC: First seen by agentprime
- 31 Oct 2026, 14:03 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-qg5r-95m4-mjgj)

## Sources

- [GitHub Advisory Database: GHSA-qg5r-95m4-mjgj](https://github.com/advisories/GHSA-qg5r-95m4-mjgj)
- [OSV: GHSA-qg5r-95m4-mjgj](https://osv.dev/vulnerability/GHSA-qg5r-95m4-mjgj)
- <https://github.com/yiisoft/yii2/security/advisories/GHSA-qg5r-95m4-mjgj>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-32877>
- <https://github.com/yiisoft/yii2/commit/62d081f18c3602d09e7d075bba3a0ca5c313f0b4>
- <https://github.com/yiisoft/yii2/commit/8cc9aeb2f0b2ffe02fb54a817064e9da75512706>
- <https://github.com/yiisoft/yii2/commit/f7baab16e79f2369d4838ab5653c3c07ecf26615>
- <https://github.com/yiisoft/yii2>
- <https://github.com/yiisoft/yii2/blob/2.0.49.x/framework/CHANGELOG.md#20494-june-4-2024>

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-qg5r-95m4-mjgj>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-qg5r-95m4-mjgj/>. Everything for agents: <https://agentprime.io/llms.txt>.
