CVE-2025-53631
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-08-14

Last updated on: 2025-08-21

Assigner: GitHub, Inc.

Description
flaskBlog is a blog app built with Flask. In versions 2.8.1 and prior, improper sanitization of postContent when submitting POST requests to /createpost leads to arbitrary JavaScript execution (XSS) on all pages the post is reflected on including /, /post/[ID], /admin/posts, and /user/[ID] of the user that made the post. At time of publication, there are no public patches available.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-08-14
Last Modified
2025-08-21
Generated
2026-05-27
AI Q&A
2025-08-14
EPSS Evaluated
2026-05-25
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
dogukanurker flaskblog to 2.8.1 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability in flaskBlog (versions 2.8.1 and prior) is caused by improper sanitization of the postContent field when users submit POST requests to /createpost. This allows attackers to inject arbitrary JavaScript code, leading to cross-site scripting (XSS) attacks. The malicious script can execute on all pages where the post content is reflected, including the homepage (/), individual post pages (/post/[ID]), admin posts page (/admin/posts), and user profile pages (/user/[ID]) of the user who made the post.


How can this vulnerability impact me? :

The vulnerability can lead to arbitrary JavaScript execution in the context of the affected user's browser. This can result in theft of session cookies, user impersonation, unauthorized actions performed on behalf of the user, and potential compromise of user accounts. It may also allow attackers to manipulate the content displayed to users or redirect them to malicious sites.


What immediate steps should I take to mitigate this vulnerability?

Since there are no public patches available at the time of publication, immediate mitigation steps include avoiding submitting untrusted or unsanitized content to the /createpost endpoint, restricting access to the affected endpoints (/createpost, /, /post/[ID], /admin/posts, /user/[ID]) to trusted users only, and monitoring for suspicious JavaScript execution in posts. Implementing additional input validation or sanitization at a proxy or web application firewall level may also help reduce risk until a patch is available.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart