<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://cve.radiocsirt.org</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Tue, 06 Oct 2026 14:56:44 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-54365 — fastapi-guard patch contains bypassable RegEx</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2025-54365</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; rennf93 fastapi-guard&lt;/p&gt;
&lt;p&gt;fastapi-guard is a security library for FastAPI that provides middleware to control IPs, log requests, detect penetration attempts and more. In version 3.0.1, the regular expression patched to mitigate the ReDoS vulnerability by limiting the length of string fails to catch inputs that exceed this limit. This type of patch fails to detect cases in which the string representing the attributes of a &amp;lt;script&amp;gt; tag exceeds 100 characters. As a result, most of the regex patterns present in version 3.0.1 can be bypassed. This is fixed in version 3.0.2.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; rennf93 fastapi-guard&lt;/p&gt;
&lt;p&gt;fastapi-guard is a security library for FastAPI that provides middleware to control IPs, log requests, detect penetration attempts and more. In version 3.0.1, the regular expression patched to mitigate the ReDoS vulnerability by limiting the length of string fails to catch inputs that exceed this limit. This type of patch fails to detect cases in which the string representing the attributes of a &amp;lt;script&amp;gt; tag exceeds 100 characters. As a result, most of the regex patterns present in version 3.0.1 can be bypassed. This is fixed in version 3.0.2.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2025-54365</guid>
    </item>
    <item>
      <title>GHSA-rrf6-pxg8-684g — FastAPI Guard has a regex bypass</title>
      <link>https://cve.radiocsirt.org/vuln/ghsa-rrf6-pxg8-684g</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: fastapi-guard&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;The regular expression patched to mitigate the ReDoS vulnerability by limiting the length of string fails to catch inputs that exceed this limit.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;In version 3.0.1, you can find a commit like the one in the link below, which was made to prevent ReDoS.
https://github.com/rennf93/fastapi-guard/commit/d9d50e8130b7b434cdc1b001b8cfd03a06729f7f&lt;/p&gt;
&lt;p&gt;This commit mitigates the vulnerability by limiting the length of the input string, as shown in the example below.
`r&amp;#34;&amp;lt;script[^&amp;gt;]*&amp;gt;[^&amp;lt;]*&amp;lt;\\/script\\s*&amp;gt;&amp;#34;` -&amp;gt; `&amp;lt;script[^&amp;gt;]{0,100}&amp;gt;[^&amp;lt;]{0,1000}&amp;lt;\\/script\\s{0,10}&amp;gt;`&lt;/p&gt;
&lt;p&gt;This type of patch fails to catch cases where the string representing the attributes of a &amp;lt;script&amp;gt; tag exceeds 100 characters.
Therefore, most of the regex patterns present in version 3.0.1 can be bypassed.&lt;/p&gt;
&lt;p&gt;### PoC&lt;/p&gt;
&lt;p&gt;1. clone the fastapi-guard repository
2. Navigate to the examples directory and modify the main.py source code. Change the HTTP method for the root route from GET to POST.
&amp;lt;img width=&amp;#34;1013&amp;#34; height=&amp;#34;554&amp;#34; alt=&amp;#34;image&amp;#34; src=&amp;#34;https://github.com/user-attachments/assets/cf93ea37-2fd7-4251-abb6-b55f88685f54&amp;#34; /&amp;gt;
3. After that, set up the example app environment by running the docker-compose up command. Then, run the Python code below to verify that the two requests return different results.&lt;/p&gt;
&lt;p&gt;```python
import requests&lt;/p&gt;
&lt;p&gt;URL = &amp;#34;&amp;lt;http://localhost:8000&amp;gt;&amp;#34;&lt;/p&gt;
&lt;p&gt;obvious_payload = {
    &amp;#34;obvious&amp;#34; : &amp;#34;&amp;lt;script&amp;gt;alert(1);&amp;lt;/script&amp;gt;&amp;#34;
}
response = requests.post(url=URL, json=obvious_payload)
print(f&amp;#34;[+] response of first re…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: fastapi-guard&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;The regular expression patched to mitigate the ReDoS vulnerability by limiting the length of string fails to catch inputs that exceed this limit.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;In version 3.0.1, you can find a commit like the one in the link below, which was made to prevent ReDoS.
https://github.com/rennf93/fastapi-guard/commit/d9d50e8130b7b434cdc1b001b8cfd03a06729f7f&lt;/p&gt;
&lt;p&gt;This commit mitigates the vulnerability by limiting the length of the input string, as shown in the example below.
`r&amp;#34;&amp;lt;script[^&amp;gt;]*&amp;gt;[^&amp;lt;]*&amp;lt;\\/script\\s*&amp;gt;&amp;#34;` -&amp;gt; `&amp;lt;script[^&amp;gt;]{0,100}&amp;gt;[^&amp;lt;]{0,1000}&amp;lt;\\/script\\s{0,10}&amp;gt;`&lt;/p&gt;
&lt;p&gt;This type of patch fails to catch cases where the string representing the attributes of a &amp;lt;script&amp;gt; tag exceeds 100 characters.
Therefore, most of the regex patterns present in version 3.0.1 can be bypassed.&lt;/p&gt;
&lt;p&gt;### PoC&lt;/p&gt;
&lt;p&gt;1. clone the fastapi-guard repository
2. Navigate to the examples directory and modify the main.py source code. Change the HTTP method for the root route from GET to POST.
&amp;lt;img width=&amp;#34;1013&amp;#34; height=&amp;#34;554&amp;#34; alt=&amp;#34;image&amp;#34; src=&amp;#34;https://github.com/user-attachments/assets/cf93ea37-2fd7-4251-abb6-b55f88685f54&amp;#34; /&amp;gt;
3. After that, set up the example app environment by running the docker-compose up command. Then, run the Python code below to verify that the two requests return different results.&lt;/p&gt;
&lt;p&gt;```python
import requests&lt;/p&gt;
&lt;p&gt;URL = &amp;#34;&amp;lt;http://localhost:8000&amp;gt;&amp;#34;&lt;/p&gt;
&lt;p&gt;obvious_payload = {
    &amp;#34;obvious&amp;#34; : &amp;#34;&amp;lt;script&amp;gt;alert(1);&amp;lt;/script&amp;gt;&amp;#34;
}
response = requests.post(url=URL, json=obvious_payload)
print(f&amp;#34;[+] response of first re…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/ghsa-rrf6-pxg8-684g</guid>
    </item>
  </channel>
</rss>
