[PR #50] [CLOSED] Bump fastapi from 0.65.1 to 0.65.2 #62

Closed
opened 2026-03-03 01:21:27 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/cs01/termpair/pull/50
Author: @dependabot[bot]
Created: 6/10/2021
Status: Closed

Base: masterHead: dependabot/pip/fastapi-0.65.2


📝 Commits (1)

  • bbb5a45 Bump fastapi from 0.65.1 to 0.65.2

📊 Changes

1 file changed (+38 additions, -18 deletions)

View changed files

📝 requirements.txt (+38 -18)

📄 Description

Bumps fastapi from 0.65.1 to 0.65.2.

Release notes

Sourced from fastapi's releases.

0.65.2

Security fixes

This change fixes a CSRF security vulnerability when using cookies for authentication in path operations with JSON payloads sent by browsers.

In versions lower than 0.65.2, FastAPI would try to read the request payload as JSON even if the content-type header sent was not set to application/json or a compatible JSON media type (e.g. application/geo+json).

So, a request with a content type of text/plain containing JSON data would be accepted and the JSON data would be extracted.

But requests with content type text/plain are exempt from CORS preflights, for being considered Simple requests. So, the browser would execute them right away including cookies, and the text content could be a JSON string that would be parsed and accepted by the FastAPI application.

See CVE-2021-32677 for more details.

Thanks to Dima Boger for the security report! 🙇🔒

Internal

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cs01/termpair/pull/50 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 6/10/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `dependabot/pip/fastapi-0.65.2` --- ### 📝 Commits (1) - [`bbb5a45`](https://github.com/cs01/termpair/commit/bbb5a456c350e15978f943728a24ec8483f04783) Bump fastapi from 0.65.1 to 0.65.2 ### 📊 Changes **1 file changed** (+38 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `requirements.txt` (+38 -18) </details> ### 📄 Description Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.65.1 to 0.65.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tiangolo/fastapi/releases">fastapi's releases</a>.</em></p> <blockquote> <h2>0.65.2</h2> <h3>Security fixes</h3> <ul> <li>🔒 Check Content-Type request header before assuming JSON. Initial PR <a href="https://github-redirect.dependabot.com/tiangolo/fastapi/pull/2118">#2118</a> by <a href="https://github.com/patrickkwang"><code>@​patrickkwang</code></a>.</li> </ul> <p>This change fixes a <a href="https://en.wikipedia.org/wiki/Cross-site_request_forgery">CSRF</a> security vulnerability when using cookies for authentication in path operations with JSON payloads sent by browsers.</p> <p>In versions lower than <code>0.65.2</code>, FastAPI would try to read the request payload as JSON even if the <code>content-type</code> header sent was not set to <code>application/json</code> or a compatible JSON media type (e.g. <code>application/geo+json</code>).</p> <p>So, a request with a content type of <code>text/plain</code> containing JSON data would be accepted and the JSON data would be extracted.</p> <p>But requests with content type <code>text/plain</code> are exempt from <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">CORS</a> preflights, for being considered <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#simple_requests">Simple requests</a>. So, the browser would execute them right away including cookies, and the text content could be a JSON string that would be parsed and accepted by the FastAPI application.</p> <p>See <a href="https://github.com/tiangolo/fastapi/security/advisories/GHSA-8h2j-cgx8-6xv7">CVE-2021-32677</a> for more details.</p> <p>Thanks to <a href="https://twitter.com/b0g3r">Dima Boger</a> for the security report! 🙇🔒</p> <h3>Internal</h3> <ul> <li>🔧 Update sponsors badge, course bundle. PR <a href="https://github-redirect.dependabot.com/tiangolo/fastapi/pull/3340">#3340</a> by <a href="https://github.com/tiangolo"><code>@​tiangolo</code></a>.</li> <li>🔧 Add new gold sponsor Jina 🎉. PR <a href="https://github-redirect.dependabot.com/tiangolo/fastapi/pull/3291">#3291</a> by <a href="https://github.com/tiangolo"><code>@​tiangolo</code></a>.</li> <li>🔧 Add new banner sponsor badge for FastAPI courses bundle. PR <a href="https://github-redirect.dependabot.com/tiangolo/fastapi/pull/3288">#3288</a> by <a href="https://github.com/tiangolo"><code>@​tiangolo</code></a>.</li> <li>👷 Upgrade Issue Manager GitHub Action. PR <a href="https://github-redirect.dependabot.com/tiangolo/fastapi/pull/3236">#3236</a> by <a href="https://github.com/tiangolo"><code>@​tiangolo</code></a>.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/tiangolo/fastapi/commit/4d91f978d265a5050baeb3d4b3618c2f5cb7995a"><code>4d91f97</code></a> 🔖 Release version 0.65.2</li> <li><a href="https://github.com/tiangolo/fastapi/commit/aabe2c7d66ef4add9d4f89c13483260e40e95b76"><code>aabe2c7</code></a> 📝 Update release notes</li> <li><a href="https://github.com/tiangolo/fastapi/commit/377234ad8ed7b15667662250166c1bac6327c879"><code>377234a</code></a> 🔒 Create Security Policy</li> <li><a href="https://github.com/tiangolo/fastapi/commit/38b785813f175bef80e3e2f5274077f46d898186"><code>38b7858</code></a> 📝 Update release notes</li> <li><a href="https://github.com/tiangolo/fastapi/commit/fa7e3c996edf2d5482fff8f9d890ac2390dede4d"><code>fa7e3c9</code></a> 🐛 Check Content-Type request header before assuming JSON (<a href="https://github-redirect.dependabot.com/tiangolo/fastapi/issues/2118">#2118</a>)</li> <li><a href="https://github.com/tiangolo/fastapi/commit/90120dd6e83d997fa2f7f54119a2e0cf906b1ded"><code>90120dd</code></a> 📝 Update release notes</li> <li><a href="https://github.com/tiangolo/fastapi/commit/36772548b7fe7556cfcb37679b80485301174856"><code>3677254</code></a> 🔧 Update sponsors badge, course bundle (<a href="https://github-redirect.dependabot.com/tiangolo/fastapi/issues/3340">#3340</a>)</li> <li><a href="https://github.com/tiangolo/fastapi/commit/40bb0c5f362665cee32a14ee1ff9c8b2f110684c"><code>40bb0c5</code></a> 📝 Update release notes</li> <li><a href="https://github.com/tiangolo/fastapi/commit/60918d25a1f28411638a258c4d99b147ddc555d7"><code>60918d2</code></a> 🔧 Add new gold sponsor Jina 🎉 (<a href="https://github-redirect.dependabot.com/tiangolo/fastapi/issues/3291">#3291</a>)</li> <li><a href="https://github.com/tiangolo/fastapi/commit/3afce2c4b87ba821f6282a763384a321076dbd61"><code>3afce2c</code></a> 📝 Update release notes</li> <li>Additional commits viewable in <a href="https://github.com/tiangolo/fastapi/compare/0.65.1...0.65.2">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=fastapi&package-manager=pip&previous-version=0.65.1&new-version=0.65.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/cs01/termpair/network/alerts). </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 01:21:27 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/termpair#62
No description provided.