CWE-352
AllowedCross-Site Request Forgery (CSRF)
Abstraction: Compound · Status: Stable
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.
14179 vulnerabilities reference this CWE, most recent first.
GHSA-8298-42FV-FJCR
Vulnerability from github – Published: 2022-05-17 05:38 – Updated: 2022-05-17 05:38Cross-site request forgery (CSRF) vulnerability in HP Insight Control Performance Management before 6.3 allows remote attackers to hijack the authentication of unspecified victims via unknown vectors.
{
"affected": [],
"aliases": [
"CVE-2011-1545"
],
"database_specific": {
"cwe_ids": [
"CWE-352"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2011-05-03T19:55:00Z",
"severity": "MODERATE"
},
"details": "Cross-site request forgery (CSRF) vulnerability in HP Insight Control Performance Management before 6.3 allows remote attackers to hijack the authentication of unspecified victims via unknown vectors.",
"id": "GHSA-8298-42fv-fjcr",
"modified": "2022-05-17T05:38:58Z",
"published": "2022-05-17T05:38:58Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2011-1545"
},
{
"type": "WEB",
"url": "http://marc.info/?l=bugtraq\u0026m=130339248106264\u0026w=2"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/44216"
},
{
"type": "WEB",
"url": "http://securityreason.com/securityalert/8237"
},
{
"type": "WEB",
"url": "http://www.securitytracker.com/id?1025431"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-8298-GQ74-VJ5G
Vulnerability from github – Published: 2024-07-03 18:48 – Updated: 2024-07-03 18:48The Snippet Shortcodes plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 4.1.4. This is due to missing or incorrect nonce validation when adding or editing shortcodes. This makes it possible for unauthenticated attackers to modify shortcodes via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.
{
"affected": [],
"aliases": [
"CVE-2024-4543"
],
"database_specific": {
"cwe_ids": [
"CWE-352"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-07-03T05:15:10Z",
"severity": "MODERATE"
},
"details": "The Snippet Shortcodes plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 4.1.4. This is due to missing or incorrect nonce validation when adding or editing shortcodes. This makes it possible for unauthenticated attackers to modify shortcodes via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.",
"id": "GHSA-8298-gq74-vj5g",
"modified": "2024-07-03T18:48:00Z",
"published": "2024-07-03T18:48:00Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-4543"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/changeset/3110951?contextall=1"
},
{
"type": "WEB",
"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/127b20c4-cd7c-4d04-b32f-bcc26beb2c35?source=cve"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-829Q-V5G8-HHXC
Vulnerability from github – Published: 2023-01-20 23:02 – Updated: 2023-01-20 23:02CsrfComponent fails to invalidate requests that are missing both the CSRF token, and CSRF post data.
{
"affected": [
{
"package": {
"ecosystem": "Packagist",
"name": "cakephp/cakephp"
},
"ranges": [
{
"events": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.0.4"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-352"
],
"github_reviewed": true,
"github_reviewed_at": "2023-01-20T23:02:02Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"details": "CsrfComponent fails to invalidate requests that are missing both the CSRF token, and CSRF post data.",
"id": "GHSA-829q-v5g8-hhxc",
"modified": "2023-01-20T23:02:02Z",
"published": "2023-01-20T23:02:02Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/cakephp/cakephp/commit/522ed2f1fb49b00001c1ef8815a6feda790d61dd"
},
{
"type": "WEB",
"url": "https://bakery.cakephp.org/2015/05/07/cakephp_3_0_4_released.html"
},
{
"type": "WEB",
"url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/cakephp/cakephp/2015-05-07.yaml"
},
{
"type": "PACKAGE",
"url": "https://github.com/cakephp/cakephp"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "CakePHP has incorrect Cross-Site Request Forgery validation"
}
GHSA-829X-7JW5-28Q3
Vulnerability from github – Published: 2022-05-01 18:05 – Updated: 2022-05-01 18:05Cross-site request forgery (CSRF) vulnerability in compose.php in SquirrelMail 1.4.0 through 1.4.9a allows remote attackers to send e-mails from arbitrary users via certain data in the SRC attribute of an IMG element.
{
"affected": [],
"aliases": [
"CVE-2007-2589"
],
"database_specific": {
"cwe_ids": [
"CWE-352"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-05-11T04:20:00Z",
"severity": "MODERATE"
},
"details": "Cross-site request forgery (CSRF) vulnerability in compose.php in SquirrelMail 1.4.0 through 1.4.9a allows remote attackers to send e-mails from arbitrary users via certain data in the SRC attribute of an IMG element.",
"id": "GHSA-829x-7jw5-28q3",
"modified": "2022-05-01T18:05:10Z",
"published": "2022-05-01T18:05:10Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-2589"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/34219"
},
{
"type": "WEB",
"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11448"
},
{
"type": "WEB",
"url": "https://rhn.redhat.com/errata/RHSA-2007-0358.html"
},
{
"type": "WEB",
"url": "http://docs.info.apple.com/article.html?artnum=306172"
},
{
"type": "WEB",
"url": "http://lists.apple.com/archives/security-announce//2007/Jul/msg00004.html"
},
{
"type": "WEB",
"url": "http://osvdb.org/35889"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/25200"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/25320"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/25787"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/26235"
},
{
"type": "WEB",
"url": "http://www.mandriva.com/security/advisories?name=MDKSA-2007:106"
},
{
"type": "WEB",
"url": "http://www.novell.com/linux/security/advisories/2007_13_sr.html"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/25159"
},
{
"type": "WEB",
"url": "http://www.squirrelmail.org/security/issue/2007-05-09"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2007/1748"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2007/2732"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-82C6-J98M-2VFW
Vulnerability from github – Published: 2022-05-02 00:03 – Updated: 2022-05-02 00:03Multiple cross-site request forgery (CSRF) vulnerabilities in forms in Drupal 6.x before 6.4 allow remote attackers to perform unspecified actions via unknown vectors, related to improper token validation for (1) cached forms and (2) forms with AHAH elements.
{
"affected": [],
"aliases": [
"CVE-2008-3743"
],
"database_specific": {
"cwe_ids": [
"CWE-352"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-08-27T15:21:00Z",
"severity": "MODERATE"
},
"details": "Multiple cross-site request forgery (CSRF) vulnerabilities in forms in Drupal 6.x before 6.4 allow remote attackers to perform unspecified actions via unknown vectors, related to improper token validation for (1) cached forms and (2) forms with AHAH elements.",
"id": "GHSA-82c6-j98m-2vfw",
"modified": "2022-05-02T00:03:19Z",
"published": "2022-05-02T00:03:19Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-3743"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=459108"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/44453"
},
{
"type": "WEB",
"url": "https://www.redhat.com/archives/fedora-package-announce/2008-September/msg00259.html"
},
{
"type": "WEB",
"url": "https://www.redhat.com/archives/fedora-package-announce/2008-September/msg00508.html"
},
{
"type": "WEB",
"url": "http://drupal.org/node/295053"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/31462"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/31825"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/30689"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2008/2392"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-82CC-5XG5-62M7
Vulnerability from github – Published: 2023-04-11 21:31 – Updated: 2025-02-11 18:31Aten PE8108 2.4.232 is vulnerable to Cross Site Request Forgery (CSRF).
{
"affected": [],
"aliases": [
"CVE-2023-25411"
],
"database_specific": {
"cwe_ids": [
"CWE-352"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2023-04-11T21:15:00Z",
"severity": "MODERATE"
},
"details": "Aten PE8108 2.4.232 is vulnerable to Cross Site Request Forgery (CSRF).",
"id": "GHSA-82cc-5xg5-62m7",
"modified": "2025-02-11T18:31:11Z",
"published": "2023-04-11T21:31:01Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-25411"
},
{
"type": "WEB",
"url": "https://www.pentagrid.ch/en/blog/multiple-vulnerabilities-in-aten-PE8108-power-distribution-unit"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-82CR-2M7C-FQ92
Vulnerability from github – Published: 2025-06-20 15:30 – Updated: 2025-06-20 15:30A vulnerability classified as problematic was found in code-projects School Fees Payment System 1.0. This vulnerability affects unknown code. The manipulation leads to cross-site request forgery. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used.
{
"affected": [],
"aliases": [
"CVE-2025-6341"
],
"database_specific": {
"cwe_ids": [
"CWE-352"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-06-20T13:15:19Z",
"severity": "MODERATE"
},
"details": "A vulnerability classified as problematic was found in code-projects School Fees Payment System 1.0. This vulnerability affects unknown code. The manipulation leads to cross-site request forgery. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used.",
"id": "GHSA-82cr-2m7c-fq92",
"modified": "2025-06-20T15:30:36Z",
"published": "2025-06-20T15:30:36Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-6341"
},
{
"type": "WEB",
"url": "https://github.com/tuooo/CVE/issues/15"
},
{
"type": "WEB",
"url": "https://code-projects.org"
},
{
"type": "WEB",
"url": "https://vuldb.com/?ctiid.313336"
},
{
"type": "WEB",
"url": "https://vuldb.com/?id.313336"
},
{
"type": "WEB",
"url": "https://vuldb.com/?submit.597023"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"type": "CVSS_V4"
}
]
}
GHSA-82FF-HG59-8X73
Vulnerability from github – Published: 2025-08-29 20:23 – Updated: 2025-08-29 20:23Hosts listed in TrustedOrigins implicitly allow requests from the corresponding HTTP origins, allowing network MitMs to perform CSRF attacks.
After the CVE-2025-24358 fix, a network attacker that places a form at http://example.com can't get it to submit to https://example.com because the Origin header is checked with sameOrigin against a synthetic URL.
However, if a host is added to TrustedOrigins, both its HTTP and HTTPS origins will be allowed, because the schema of the synthetic URL is ignored and only the host is checked. For example, if an application is hosted on https://example.com and adds example.net to TrustedOrigins, a network attacker can serve a form at http://example.net to perform the attack.
Applications should migrate to net/http.CrossOriginProtection, introduced in Go 1.25. If that is not an option, a backport is available as a module at filippo.io/csrf, and a drop-in replacement for the github.com/gorilla/csrf API is available at filippo.io/csrf/gorilla.
{
"affected": [
{
"package": {
"ecosystem": "Go",
"name": "github.com/gorilla/csrf"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "1.7.3"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2025-47909"
],
"database_specific": {
"cwe_ids": [
"CWE-352",
"CWE-807"
],
"github_reviewed": true,
"github_reviewed_at": "2025-08-29T20:23:16Z",
"nvd_published_at": "2025-08-29T16:15:35Z",
"severity": "MODERATE"
},
"details": "Hosts listed in TrustedOrigins implicitly allow requests from the corresponding HTTP origins, allowing network MitMs to perform CSRF attacks.\n\nAfter the CVE-2025-24358 fix, a network attacker that places a form at http://example.com can\u0027t get it to submit to https://example.com because the Origin header is checked with sameOrigin against a synthetic URL.\n\nHowever, if a host is added to TrustedOrigins, both its HTTP and HTTPS origins will be allowed, because the schema of the synthetic URL is ignored and only the host is checked. For example, if an application is hosted on https://example.com and adds example.net to TrustedOrigins, a network attacker can serve a form at http://example.net to perform the attack.\n\nApplications should migrate to net/http.CrossOriginProtection, introduced in Go 1.25. If that is not an option, a backport is available as a module at filippo.io/csrf, and a drop-in replacement for the github.com/gorilla/csrf API is available at filippo.io/csrf/gorilla.",
"id": "GHSA-82ff-hg59-8x73",
"modified": "2025-08-29T20:23:17Z",
"published": "2025-08-29T20:23:16Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47909"
},
{
"type": "WEB",
"url": "https://github.com/golang/vulndb/issues/3884"
},
{
"type": "PACKAGE",
"url": "https://github.com/gorilla/csrf"
},
{
"type": "WEB",
"url": "https://pkg.go.dev/vuln/GO-2025-3884"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U",
"type": "CVSS_V4"
}
],
"summary": "github.com/gorilla/csrf improperly validates TrustedOrigins allowing CSRF attacks"
}
GHSA-82G4-FHXW-V87V
Vulnerability from github – Published: 2025-01-02 12:32 – Updated: 2026-04-01 18:32Cross-Site Request Forgery (CSRF) vulnerability in Till Krüss Email Address Encoder allows Cross Site Request Forgery.This issue affects Email Address Encoder: from n/a through 1.0.23.
{
"affected": [],
"aliases": [
"CVE-2024-43927"
],
"database_specific": {
"cwe_ids": [
"CWE-352"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-01-02T12:15:23Z",
"severity": "MODERATE"
},
"details": "Cross-Site Request Forgery (CSRF) vulnerability in Till Kr\u00fcss Email Address Encoder allows Cross Site Request Forgery.This issue affects Email Address Encoder: from n/a through 1.0.23.",
"id": "GHSA-82g4-fhxw-v87v",
"modified": "2026-04-01T18:32:58Z",
"published": "2025-01-02T12:32:15Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-43927"
},
{
"type": "WEB",
"url": "https://patchstack.com/database/wordpress/plugin/email-address-encoder/vulnerability/wordpress-email-address-encoder-plugin-1-0-23-cross-site-request-forgery-csrf-vulnerability?_s_id=cve"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L",
"type": "CVSS_V3"
}
]
}
GHSA-82GC-4R76-JVVF
Vulnerability from github – Published: 2023-06-09 09:30 – Updated: 2024-04-04 04:42The WP EasyCart plugin for WordPress is vulnerable to Cross-Site Request Forgery in versions up to, and including, 5.4.8. This is due to missing or incorrect nonce validation on the process_bulk_delete_product function. This makes it possible for unauthenticated attackers to bulk delete products via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.
{
"affected": [],
"aliases": [
"CVE-2023-2892"
],
"database_specific": {
"cwe_ids": [
"CWE-352"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2023-06-09T07:15:09Z",
"severity": "MODERATE"
},
"details": "The WP EasyCart plugin for WordPress is vulnerable to Cross-Site Request Forgery in versions up to, and including, 5.4.8. This is due to missing or incorrect nonce validation on the process_bulk_delete_product function. This makes it possible for unauthenticated attackers to bulk delete products via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.",
"id": "GHSA-82gc-4r76-jvvf",
"modified": "2024-04-04T04:42:16Z",
"published": "2023-06-09T09:30:15Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-2892"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/changeset/2917958/wp-easycart"
},
{
"type": "WEB",
"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/b36e94e4-b1e8-4803-9377-c4d710b029de?source=cve"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N",
"type": "CVSS_V3"
}
]
}
Mitigation MIT-4
Strategy: Libraries or Frameworks
- 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]
Mitigation
Ensure that the application is free of cross-site scripting issues (CWE-79), because most CSRF defenses can be bypassed using attacker-controlled script.
Mitigation
Generate a unique nonce for each form, place the nonce into the form, and verify the nonce upon receipt of the form. Be sure that the nonce is not predictable (CWE-330). [REF-332]
Mitigation
Identify especially dangerous operations. When the user performs a dangerous operation, send a separate confirmation request to ensure that the user intended to perform that operation.
Mitigation
- 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]
Mitigation
Do not use the GET method for any request that triggers a state change.
Mitigation
Check the HTTP Referer header to see if the request originated from an expected page. This could break legitimate functionality, because users or proxies may have disabled sending the Referer for privacy reasons.
CAPEC-111: JSON Hijacking (aka JavaScript Hijacking)
An attacker targets a system that uses JavaScript Object Notation (JSON) as a transport mechanism between the client and the server (common in Web 2.0 systems using AJAX) to steal possibly confidential information transmitted from the server back to the client inside the JSON object by taking advantage of the loophole in the browser's Same Origin Policy that does not prohibit JavaScript from one website to be included and executed in the context of another website.
CAPEC-462: Cross-Domain Search Timing
An attacker initiates cross domain HTTP / GET requests and times the server responses. The timing of these responses may leak important information on what is happening on the server. Browser's same origin policy prevents the attacker from directly reading the server responses (in the absence of any other weaknesses), but does not prevent the attacker from timing the responses to requests that the attacker issued cross domain.
CAPEC-467: Cross Site Identification
An attacker harvests identifying information about a victim via an active session that the victim's browser has with a social networking site. A victim may have the social networking site open in one tab or perhaps is simply using the "remember me" feature to keep their session with the social networking site active. An attacker induces a payload to execute in the victim's browser that transparently to the victim initiates a request to the social networking site (e.g., via available social network site APIs) to retrieve identifying information about a victim. While some of this information may be public, the attacker is able to harvest this information in context and may use it for further attacks on the user (e.g., spear phishing).
CAPEC-62: Cross Site Request Forgery
An attacker crafts malicious web links and distributes them (via web pages, email, etc.), typically in a targeted manner, hoping to induce users to click on the link and execute the malicious action against some third-party application. If successful, the action embedded in the malicious link will be processed and accepted by the targeted application with the users' privilege level. This type of attack leverages the persistence and implicit trust placed in user session cookies by many web applications today. In such an architecture, once the user authenticates to an application and a session cookie is created on the user's system, all following transactions for that session are authenticated using that cookie including potential actions initiated by an attacker and simply "riding" the existing session cookie.