CVE-20XX-?
agent?

CVE-2024-56140

5.9 MEDIUM 0.2% exploit odds Fix listed Auth & access Web app

What it is

Astro is a web framework for content-driven websites. In affected versions a bug in Astro’s CSRF-protection middleware allows requests to bypass CSRF checks. When the `security.checkOrigin` configuration option is set to `true`, Astro middleware will perform a CSRF check. However, a vulnerability exists that can bypass this security. A semicolon-delimited parameter is allowed after the type in `Content-Type`. Web browsers will treat a `Content-Type` such as `application/x-www-form-urlencoded; abc` as a `simple request` and will not perform preflight validation. In this case, CSRF is not blocked as expected. Additionally, the `Content-Type` header is not required for a request. This issue has been addressed in version 4.16.17 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

At a glance

Exploitability
Can be exploited over the network without logging in, but needs a user to act. High risk of data tampering.
Exploit odds
0.2% chance of exploitation in the next 30 days (EPSS).
Fix
A patch, advisory or fixed version is referenced. Upgrade or apply it.

Timeline

  1. PublishedDisclosed publicly on CVE.org and NVD
  2. Last updatedMost recent change to the record

Why it ranks here

Details

Published
Last modified
Exploit probability
0.2% · EPSS, next 30 days
Weakness
CWE-352 · Cross-site request forgery
Record status
Analyzed

Affected

Attack profile CVSS 3.1 · 5.9

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
None
Raw vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:N

Is it in your code?

Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.

Read https://cve-list.com/agent/cve/CVE-2024-56140.md and follow it. Check whether this project is affected by CVE-2024-56140. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.

· More options · Status badge

Meme: I wake up, CVE-2024-56140
Download Square Reddit

Fix and advisories

References

NVD record · CVE.org record