cve.bz

CWE-394: Unexpected Status Code or Return Value, published in 2022

Filter

The product does not properly check when a function or operation returns a value that is legitimate for the function, but is not expected by the product.

What the weakness is: CWE-394 at MITRE. OWASP Top 10: A10:2025 Mishandling of Exceptional Conditions. All weaknesses

Ask an AI about CWE-394

Show the promptExplain CWE-394: Unexpected Status Code or Return Value and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/394.html and https://cve.bz/cve/cwe/394?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.

By year: all 2026 2025 2024 2023 2022 2021

  1. 5.3CVE-2022-24880flask-session-captcha project flask-session-captchaEPSS 1.2%

    flask-session-captcha is a package which allows users to extend Flask by adding an image based captcha stored in a server side session. In versions prior to 1.2.1, he `captcha.validate()` function would return `None` if passed no value (e.…