CVE Vulnerabilities

CVE-2025-31205

Cross-Site Request Forgery (CSRF)

Published: May 12, 2025 | Modified: Nov 03, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
6.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

The issue was addressed with improved checks. This issue is fixed in watchOS 11.5, tvOS 18.5, iOS 18.5 and iPadOS 18.5, macOS Sequoia 15.5, visionOS 2.5, Safari 18.5. A malicious website may exfiltrate data cross-origin.

Weakness

The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.

Affected Software

NameVendorStart VersionEnd Version
SafariApple*18.5 (excluding)
IpadosApple*18.5 (excluding)
Iphone_osApple*18.5 (excluding)
MacosApple*15.5 (excluding)
TvosApple*18.5 (excluding)
VisionosApple*2.5 (excluding)
WatchosApple*11.5 (excluding)
Red Hat Enterprise Linux 7 Extended Lifecycle SupportRedHatwebkitgtk4-0:2.48.3-2.el7_9*
Red Hat Enterprise Linux 8RedHatwebkit2gtk3-0:2.48.2-1.el8_10*
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportRedHatwebkit2gtk3-0:2.48.2-1.el8_4*
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportRedHatwebkit2gtk3-0:2.48.2-1.el8_6*
Red Hat Enterprise Linux 8.6 Telecommunications Update ServiceRedHatwebkit2gtk3-0:2.48.2-1.el8_6*
Red Hat Enterprise Linux 8.6 Update Services for SAP SolutionsRedHatwebkit2gtk3-0:2.48.2-1.el8_6*
Red Hat Enterprise Linux 8.8 Telecommunications Update ServiceRedHatwebkit2gtk3-0:2.48.2-1.el8_8*
Red Hat Enterprise Linux 8.8 Update Services for SAP SolutionsRedHatwebkit2gtk3-0:2.48.2-1.el8_8*
Red Hat Enterprise Linux 9RedHatwebkit2gtk3-0:2.48.2-1.el9_6*
Red Hat Enterprise Linux 9.0 Update Services for SAP SolutionsRedHatwebkit2gtk3-0:2.48.2-1.el9_0*
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRedHatwebkit2gtk3-0:2.48.2-1.el9_2*
Red Hat Enterprise Linux 9.4 Extended Update SupportRedHatwebkit2gtk3-0:2.48.2-1.el9_4*
Qtwebkit-opensource-srcUbuntuesm-apps/bionic*
Qtwebkit-opensource-srcUbuntuesm-apps/focal*
Qtwebkit-opensource-srcUbuntuesm-apps/jammy*
Qtwebkit-opensource-srcUbuntuesm-apps/noble*
Qtwebkit-opensource-srcUbuntuesm-infra/xenial*
Qtwebkit-opensource-srcUbuntufocal*
Qtwebkit-opensource-srcUbuntujammy*
Qtwebkit-opensource-srcUbuntunoble*
Qtwebkit-opensource-srcUbuntuoracular*
Qtwebkit-sourceUbuntuesm-apps/bionic*
Qtwebkit-sourceUbuntuesm-apps/xenial*
Webkit2gtkUbuntudevel*
Webkit2gtkUbuntuesm-infra/bionic*
Webkit2gtkUbuntuesm-infra/focal*
Webkit2gtkUbuntuesm-infra/xenial*
Webkit2gtkUbuntufocal*
Webkit2gtkUbuntujammy*
Webkit2gtkUbuntunoble*
Webkit2gtkUbuntuoracular*
Webkit2gtkUbuntuplucky*
Webkit2gtkUbuntuupstream*
WebkitgtkUbuntuesm-apps/bionic*
WebkitgtkUbuntuesm-apps/xenial*
WpewebkitUbuntuesm-apps/focal*
WpewebkitUbuntuesm-apps/jammy*
WpewebkitUbuntufocal*
WpewebkitUbuntujammy*

Potential Mitigations

  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482].
  • For example, use anti-CSRF packages such as the OWASP CSRFGuard. [REF-330]
  • Another example is the ESAPI Session Management control, which includes a component for CSRF. [REF-45]
  • Use the “double-submitted cookie” method as described by Felten and Zeller:
  • When a user visits a site, the site should generate a pseudorandom value and set it as a cookie on the user’s machine. The site should require every form submission to include this value as a form value and also as a cookie value. When a POST request is sent to the site, the request should only be considered valid if the form value and the cookie value are the same.
  • Because of the same-origin policy, an attacker cannot read or modify the value stored in the cookie. To successfully submit a form on behalf of the user, the attacker would have to correctly guess the pseudorandom value. If the pseudorandom value is cryptographically strong, this will be prohibitively difficult.
  • This technique requires Javascript, so it may not work for browsers that have Javascript disabled. [REF-331]

References