Intel

AIKIDO-2024-10511

astro is vulnerable to Cross-Site Request Forgery (CSRF)

Cross-Site Request Forgery (CSRF) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 4, 2024

10

Low Risk

This Affects:

JSastro
0.0.1 - 4.16.16
Fixed in 4.16.17
Are you affected? Scan for Free

TL;DR

Affected versions of this package lack default protection against cross-site request forgery (CSRF). To mitigate this vulnerability, users of versions starting from 4.9.0 can explicitly enable protection by setting security.checkOrigin to true in the configuration, lower versions are not protected. The patched version addresses this issue by enabling CSRF protection by default. Updating to the latest version or adjusting the configuration is recommended to prevent unauthorized actions on behalf of authenticated users.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

astro is vulnerable to Cross-Site Request Forgery (CSRF) in versions 0.0.1 - 4.16.16.

How to fix this

Upgrade the astro library to the patch version or set security.checkOrigin to true if you have a version higher than 4.9.0.