rodauth is vulnerable to Cross-Site Request Forgery (CSRF)
49
Medium Risk
The json feature matches request content types with a regexp that is not anchored to the start of the Content-Type header. A request can present application/json as a parameter of another content type so it is treated as a JSON request, which Rodauth exempts from CSRF checks by default on the assumption that such requests require a CORS preflight. This lets cross-origin form submissions bypass CSRF protection, and for endpoints that do not require a login it can force authentication into a chosen account. The fix anchors the default content-type regexp with the start-of-string anchor so only genuine JSON content types skip CSRF checks.
You are affected if you are using a version that falls within the vulnerable range and you enable the json feature while relying on the default CSRF handling without an explicit check_csrf or a properly anchored json_request_content_type_regexp.
rodauth is vulnerable to Cross-Site Request Forgery (CSRF) in versions 0.0.1 - 2.46.0.
Upgrade the rodauth library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant