CVE-2021-28490: Cross-Site Request Forgery in OWASP CSRFGuard

org.owasp:csrfguard Updated 02 Oct 2025

Summary

24/05/2022
Yes i
High
8.8

CVE-2021-28490: Cross-Site Request Forgery in OWASP CSRFGuard. Affects org.owasp:csrfguard versions < 4.0.0. Fixed in 4.0.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

OWASP CSRFGuard is a security library that helps protect web applications against Cross-Site Request Forgery (CSRF) attacks. It provides a set of Java filters that validate and enforce the presence of CSRF tokens in HTTP requests. By ensuring that requests contain the correct CSRF token, CSRFGuard prevents attackers from executing unauthorized actions on behalf of authenticated users.

Vulnerability Detail

The vulnerability identified as CVE-2021-28490 in OWASP CSRFGuard versions up to 3.1.0 allows for CSRF attacks due to the retrieval of the CSRF cookie using only a session token. This means that an attacker can forge requests that include the session token and bypass CSRF protection. By exploiting this vulnerability, an attacker can perform unauthorized actions on behalf of authenticated users, potentially leading to data breaches, account hijacking, or other malicious activities.

How To Fix

Minimum fixed version

4.0.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, developers can manually implement additional CSRF protection measures in their applications. This can include implementing double-submit cookies, synchronizer tokens, or other CSRF prevention techniques. However, it is strongly advised to upgrade to the latest version of OWASP CSRFGuard as soon as possible to ensure comprehensive protection against CSRF attacks.

Conclusion

The vulnerability identified as CVE-2021-28490 in OWASP CSRFGuard versions up to 3.1.0 allows for CSRF attacks by retrieving the CSRF cookie using only a session token. To mitigate this vulnerability, it is crucial to upgrade to OWASP CSRFGuard version 4.0.0 or later. This upgrade will provide enhanced security against CSRF attacks and protect web applications from unauthorized actions. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.owasp:csrfguard →

Share this vulnerability

FAQ

OWASP CSRFGuard is a security library that helps protect web applications against Cross-Site Request Forgery (CSRF) attacks. It provides a set of Java filters that validate and enforce the presence of CSRF tokens in HTTP requests.

Cross-Site Request Forgery (CSRF) is a type of attack where an attacker tricks a victim into performing unwanted actions on a web application in which the victim is authenticated. By exploiting CSRF vulnerabilities, attackers can perform actions on behalf of the victim without their consent.

This vulnerability allows attackers to bypass CSRF protection and perform unauthorized actions on behalf of authenticated users. The impact can range from data breaches to account hijacking and other malicious activities.

To fix this vulnerability, it is recommended to upgrade to OWASP CSRFGuard version 4.0.0 or later. This version includes a fix for the CSRF issue and ensures that the CSRF cookie cannot be retrieved using only a session token.

As a temporary workaround, developers can manually implement additional CSRF protection measures in their applications. However, it is strongly advised to upgrade to the latest version of OWASP CSRFGuard for comprehensive protection.

How To Fix

Minimum fixed version

4.0.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback