# GHSA-wf98-vxv9-jqfv: XSS Injection Vulnerability

> An XSS vulnerability in the Craft CMS Feeds widget allows attackers to inject malicious scripts via malformed feeds, potentially compromising user sessions.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 5 Apr 2022

## What is GHSA-wf98-vxv9-jqfv?

GHSA-wf98-vxv9-jqfv is a cross-site scripting vulnerability in craftcms/cms, published on 5 Apr 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

### Official description

### Impact

Under some circumstances, the Feeds widget on the dashboard could have an XSS vulnerability if a malformed feed was supplied.

### Patches

This has been patched in Craft 3.7.29.

### References

* https://github.com/craftcms/cms/blob/develop/CHANGELOG.md#3729---2022-01-18

### For more information

If you have any questions or comments about this advisory, email us at [support@craftcms.com](mailto:support@craftcms.com)

----------

Credits: https://github.com/noobpk

## Which versions are affected by GHSA-wf98-vxv9-jqfv?

2 open source packages ship an affected version, including craftcms/cms.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `craftcms/cms` | Packagist | All versions | 3.7.29 |
| `craftcms/cms` | Packagist | All versions | 3.7.29 |

## How do I fix GHSA-wf98-vxv9-jqfv?

Upgrade craftcms/cms to 3.7.29 or later.

## Is GHSA-wf98-vxv9-jqfv being exploited?

There is no known exploitation of GHSA-wf98-vxv9-jqfv in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-wf98-vxv9-jqfv and fix it if it is affected.

What it is: GHSA-wf98-vxv9-jqfv is a cross-site scripting vulnerability in craftcms/cms, published on 5 Apr 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of GHSA-wf98-vxv9-jqfv in the wild and no public exploit code.

Affected packages and fixed versions:
- craftcms/cms (Packagist): affected all versions; fixed in 3.7.29
- craftcms/cms (Packagist): affected all versions; fixed in 3.7.29

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/GHSA-wf98-vxv9-jqfv/ (Markdown: https://insights.sbomify.com/GHSA-wf98-vxv9-jqfv/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-wf98-vxv9-jqfv

---
From sbomify Insights: https://insights.sbomify.com/GHSA-wf98-vxv9-jqfv/
Summaries are generated and may contain mistakes; the official description above is the record.
