Package Search Help

You can use boolean logic (e.g. AND/OR/NOT) for complex search queries. For more help and examples, see the search documentation.

Search by package name:
my-package (implicit)
name:my-package (explicit)

Search by package filename:
filename:my-package.ext 

Search by package tag:
tag:latest 

Search by package version:
version:1.0.0  prerelease:true (prereleases)
prerelease:false (no prereleases)

Search by package architecture:
architecture:x86_64 

Search by package distribution:
distribution:el 

Search by package license:
license:MIT 

Search by package format:
format:deb 

Search by package status:
status:in_progress 

Search by package file checksum:
checksum:5afba 

Search by package security status:
severity:critical 

Search by package vulnerabilities:
vulnerabilities:>1 
vulnerabilities:<1000 

Search by # of package downloads:
downloads:>8 
downloads:<100 

Search by package type:
type:binary 
type:source 

Search by package size (bytes):
size:>50000 
size:<10000 

Search by dependency name/version:
dependency:log4j 
dependency:log4j=1.0.0 
dependency:log4j>1.0.0 

Search by uploaded date:
uploaded:>"1 day ago" 
uploaded:<"August 14, 2022 EST" 

Search by entitlement token (identifier):
entitlement:3lKPVJPosCsY 

Search by policy violation:
policy_violated:true
deny_policy_violated:true
license_policy_violated:true
vulnerability_policy_violated:true

Search by repository:
repository:repo-name

Search by last download date:
last_downloaded:<"30 days ago" 
last_downloaded:>"August 14, 2022 EST" 

Search queries for all Debian-specific (and related) package types

Search by component:
deb_component:unstable

Search queries for all Maven-specific (and related) package types

Search by group ID:
maven_group_id:org.apache

Search queries for all Docker-specific (and related) package types

Search by image digest:
docker_image_digest:sha256:7c5..6d4
(full hashref only)

Search by layer digest:
docker_layer_digest:sha256:4c4..ae4
(full hashref only)

Search queries for all Generic-specific package types

Search by file path:
generic_filepath:path/to/file.txt

Search by directory:
generic_directory:path/to

Field type modifiers (depending on the type, you can influence behaviour)

For all queries, you can use:
~foo for negation

For string queries, you can use:
^foo to anchor to start of term
foo$ to anchor to end of term
foo*bar for fuzzy matching

For number/date or version queries, you can use:
>foo for values greater than
>=foo for values greater / equal
<foo for values less than
<=foo for values less / equal

Need a secure and centralised artifact repository to deliver Alpine, Cargo, CocoaPods, Composer, Conan, Conda, CRAN, Dart, Debian, Docker, Generic, Go, Helm, Hex, HuggingFace, LuaRocks, Maven, MCP, npm, NuGet, P2, Python, RedHat, Ruby, Swift, Terraform, Vagrant, VSX, Raw & More packages?

Cloudsmith is the new standard in Package / Artifact Management and Software Distribution.

With support for all major package formats, you can trust us to manage your software supply chain.

Start My Free Trial

Python logo Flask  2.0.1

One-liner (summary)

A simple framework for building complex web applications.

Description

Flask

Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. It began as a simple wrapper around Werkzeug and Jinja and has become one of the most popular Python web application frameworks.

Flask offers suggestions, but doesn't enforce any dependencies or project layout. It is up to the developer to choose the tools and libraries they want to use. There are many extensions provided by the community that make adding new functionality easy.

Installing

Install and update using pip:

$ pip install -U Flask

A Simple Example

# save this as app.py
from flask import Flask

app = Flask(__name__)

@app.route("/")
def hello():
    return "Hello, World!"
$ flask run
  * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

Contributing

For guidance on setting up a development environment and how to make a contribution to Flask, see the contributing guidelines.

Status  Quarantined
Checksum (MD5) 70dd340b2091805c0446040b6cbe7199
Checksum (SHA-1) 597c581cf984aef9013b0b1cdc48c366df8894ce
Checksum (SHA-256) a6209ca15eb63fc9385f38e452704113d679511d9574d09b2cf9183ae7d20dc9
Checksum (SHA-512) 9ed20ea64efd0d9563c39de48b732be815015e5a04aab2601a55b011af38e28009…
GPG Signature
GPG Fingerprint 6811684bac0b8895434e97bdd4391b8fb999e537
Storage Region  Dublin, Ireland
Type  Binary (contains binaries and binary artifacts)
Uploaded At 9 months, 3 weeks ago
Uploaded By Fetched by Cloudsmith
Slug Id flask-201-py3-none-anywhl-14bv
Unique Id Lf33xKWZdSAKLv5T
Version (Raw) 2.0.1
Version (Parsed)
  • Major: 2
  • Minor: 0
  • Patch: 1
  • Type: SemVer (Compat)
  extended metadata
Author Armin Ronacher <armin.ronacher@active-4.com>
Classifiers Development Status :: 5 - Production/Stable | Environment :: Web Environment | Framework :: Flask | Intended Audience :: Developers | License :: OSI Approved :: BSD License | Operating System :: OS Independent | Programming Language :: Python | Topic :: Internet :: WWW/HTTP :: Dynamic Content | Topic :: Internet :: WWW/HTTP :: WSGI | Topic :: Internet :: WWW/HTTP :: WSGI :: Application | Topic :: Software Development :: Libraries :: Application Frameworks
Homepage URL https://palletsprojects.com/p/flask
Maintainer Pallets <contact@palletsprojects.com>
Metadata Version 2.1
Project Urls Changes, https://flask.palletsprojects.com/changes/ | Chat, https://discord.gg/pallets | Documentation, https://flask.palletsprojects.com/ | Donate, https://palletsprojects.com/donate | Issue Tracker, https://github.com/pallets/flask/issues/ | Source Code, https://github.com/pallets/flask/ | Twitter, https://twitter.com/PalletsTeam
Py Filetype bdist_wheel
Py Version py3
Requires Dist Jinja2 (>=3.0) | Werkzeug (>=2.0) | asgiref (>=3.2) ; extra == 'async' | click (>=7.1.2) | itsdangerous (>=2.0) | python-dotenv ; extra == 'dotenv'
Requires Python >=3.6
pkg Flask-2.0.1-py3-none-any.whl 3
92.6 KB
md5 sha1 sha256 sha512
Package Contents (Flask-2.0.1-py3-none-any.whl)
Loading...

This package has 32 files/directories.

Last scanned

9 months, 3 weeks ago

Scan result

Vulnerable

Vulnerability count

1

Max. severity

High
Target: requirements.txt
HIGH

CVE-2023-30861: flask: Possible disclosure of permanent session cookie due to missing Vary: Cookie header

Flask is a lightweight WSGI web application framework. When all of the following conditions are met, a response containing data intended for one client may be cached and subsequently sent by the proxy to other clients. If the proxy also caches `Set-Cookie` headers, it may send one client's `session` cookie to other clients. The severity depends on the application's use of the session and the proxy's behavior regarding cookies. The risk depends on all these conditions being met. 1. The application must be hosted behind a caching proxy that does not strip cookies or ignore responses with cookies. 2. The application sets `session.permanent = True` 3. The application does not access or modify the session at any point during a request. 4. `SESSION_REFRESH_EACH_REQUEST` enabled (the default). 5. The application does not set a `Cache-Control` header to indicate that a page is private or should not be cached. This happens because vulnerable versions of Flask only set the `Vary: Cookie` header when the session is accessed or modified, not when it is refreshed (re-sent to update the expiration) without being accessed or modified. This issue has been fixed in versions 2.3.2 and 2.2.5.

Package Name: Flask
Installed Version: 2.0.1
Fixed Version: 2.3.2, 2.2.5

References: access.redhat.com github.com github.com github.com github.com github.com github.com github.com github.com github.com linux.oracle.com linux.oracle.com lists.debian.org nvd.nist.gov security.netapp.com security.netapp.com ubuntu.com www.cve.org www.debian.org

You can embed a badge in another website that shows this or the latest version of this package.

To embed the badge for this specific package version, use the following:

[![This version of 'Flask' @ Cloudsmith](https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/Flask/2.0.1/a=noarch;xf=bdist_wheel;xn=flask;xv=py3/?render=true)](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/Flask/2.0.1/a=noarch;xf=bdist_wheel;xn=flask;xv=py3/)
|This version of 'Flask' @ Cloudsmith|
.. |This version of 'Flask' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/Flask/2.0.1/a=noarch;xf=bdist_wheel;xn=flask;xv=py3/?render=true
   :target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/Flask/2.0.1/a=noarch;xf=bdist_wheel;xn=flask;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/Flask/2.0.1/a=noarch;xf=bdist_wheel;xn=flask;xv=py3/?render=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/Flask/2.0.1/a=noarch;xf=bdist_wheel;xn=flask;xv=py3/",title="This version of 'Flask' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/Flask/2.0.1/a=noarch;xf=bdist_wheel;xn=flask;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/Flask/2.0.1/a=noarch;xf=bdist_wheel;xn=flask;xv=py3/?render=true" alt="This version of 'Flask' @ Cloudsmith" /></a>

rendered as: This version of 'Flask' @ Cloudsmith

To embed the badge for the latest package version, use the following:

[![Latest version of 'Flask' @ Cloudsmith](https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/Flask/latest/a=noarch;xf=bdist_wheel;xn=flask;xv=py3/?render=true&show_latest=true)](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/Flask/latest/a=noarch;xf=bdist_wheel;xn=flask;xv=py3/)
|Latest version of 'Flask' @ Cloudsmith|
.. |Latest version of 'Flask' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/Flask/latest/a=noarch;xf=bdist_wheel;xn=flask;xv=py3/?render=true&show_latest=true
   :target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/Flask/latest/a=noarch;xf=bdist_wheel;xn=flask;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/Flask/latest/a=noarch;xf=bdist_wheel;xn=flask;xv=py3/?render=true&show_latest=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/Flask/latest/a=noarch;xf=bdist_wheel;xn=flask;xv=py3/",title="Latest version of 'Flask' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/Flask/latest/a=noarch;xf=bdist_wheel;xn=flask;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/Flask/latest/a=noarch;xf=bdist_wheel;xn=flask;xv=py3/?render=true&show_latest=true" alt="Latest version of 'Flask' @ Cloudsmith" /></a>

rendered as: Latest version of 'Flask' @ Cloudsmith

Previous Version
Next Version
Top