Comments (3)
Btw, my experience with safety
has been only false positives. I've been using it at one client for about two years, because their security policy needed something in place. But IIRC the only alerts we've ever seen were false positives that needed muting, maybe 2-3 times.
I am considering switching to pip-audit, which has a community-driven database.
from daphne.
From the safety JSON file: https://raw.githubusercontent.com/pyupio/safety-db/master/data/insecure_full.json
"daphne": [
{
"advisory": "Daphne 4.0.0b1 updates its dependency 'twisted' requirement to '>=22.4' to include security fixes.",
"cve": "CVE-2022-21712",
"id": "pyup.io-50814",
"more_info_path": "/vulnerabilities/CVE-2022-21712/50814/",
"specs": [
"<4.0.0b1"
],
"v": "<4.0.0b1"
},
{
"advisory": "Daphne 4.0.0b1 updates its dependency 'twisted' requirement to '>=22.4' to include security fixes.",
"cve": "CVE-2020-10108",
"id": "pyup.io-50815",
"more_info_path": "/vulnerabilities/CVE-2020-10108/50815/",
"specs": [
"<4.0.0b1"
],
"v": "<4.0.0b1"
},
{
"advisory": "Daphne 4.0.0b1 updates its dependency 'twisted' requirement to '>=22.4' to include security fixes.",
"cve": "CVE-2020-10109",
"id": "pyup.io-50816",
"more_info_path": "/vulnerabilities/CVE-2020-10109/50816/",
"specs": [
"<4.0.0b1"
],
"v": "<4.0.0b1"
},
{
"advisory": "Daphne 4.0.0b1 updates its dependency 'twisted' requirement to '>=22.4' to include security fixes.",
"cve": "CVE-2019-12855",
"id": "pyup.io-50817",
"more_info_path": "/vulnerabilities/CVE-2019-12855/50817/",
"specs": [
"<4.0.0b1"
],
"v": "<4.0.0b1"
},
{
"advisory": "Daphne 4.0.0b1 updates its dependency 'twisted' requirement to '>=22.4' to include security fixes.",
"cve": "CVE-2019-12387",
"id": "pyup.io-50818",
"more_info_path": "/vulnerabilities/CVE-2019-12387/50818/",
"specs": [
"<4.0.0b1"
],
"v": "<4.0.0b1"
},
{
"advisory": "Daphne 4.0.0b1 updates its dependency 'twisted' requirement to '>=22.4' to include security fixes.",
"cve": "CVE-2022-24801",
"id": "pyup.io-50768",
"more_info_path": "/vulnerabilities/CVE-2022-24801/50768/",
"specs": [
"<4.0.0b1"
],
"v": "<4.0.0b1"
}
],
Links to pyup:
- https://pyup.io/vulnerabilities/CVE-2022-21712/50814/
- https://pyup.io/vulnerabilities/CVE-2020-10108/50815/
- https://pyup.io/vulnerabilities/CVE-2020-10109/50816/
- https://pyup.io/vulnerabilities/CVE-2019-12855/50817/
- https://pyup.io/vulnerabilities/CVE-2019-12387/50818/
- https://pyup.io/vulnerabilities/CVE-2022-24801/50768/
These all report on the same thing, that Daphne <4.0.0b1 doesn't require a secure version of twisted.
IMO these are "garbage" reports, you can use the new version of Twisted with Daphne 3.0.2. Daphne cannot be expected to release a new version with an updated minimum version pin, every time that Twisted releases a security fix.
I advise ignoring the checks (safety check --ignore=50814 ...
), and reporting them as bad checks to PyUP.
from daphne.
Yes, thanks @adamchainz — I agree these are garbage. It makes Pyup's reviewed by experts look pretty weak TBH
The key point is the twisted
dependency is a minimum if you pip install daphne
you don't get an insecure version....
Successfully installed … daphne-3.0.2 … twisted-22.4.0
So @CarolynWebster You can carry on (but please do report the issue to pyup)
...cannot be expected to release a new version with an updated minimum version pin...
It's a minimum needs at least this — if I declare Django>=3.2
it's not a security issue in my package because Django 3.2.15 was a security release. You just update Django.
from daphne.
Related Issues (20)
- runworker does not adhere to logging configuration from settings.py HOT 2
- Twisted exception when TLS is used with Daphne on Windows 10 HOT 11
- Django running behind multiple Daphne instances opens too many database connections HOT 11
- Error setting up SSL - CRITICAL Listen failure: Couldn't listen on any:8000: [Errno 98] Address already in use. HOT 1
- Response 400 when submit a 3-Images Form by POST HOT 2
- Missing support for --nostatic and --insecure options in Daphne's runserver command HOT 2
- how to set websocket send buffersize in daphne
- issuse when i using daphe in my django app with streaminghttpresponse HOT 7
- Can daphne run WSGI apps? HOT 6
- Does daphne have a file for initialization?
- Requests with Transfer-Encoding: chunked have no content HOT 14
- StreamHttpResponse with sync operations break in Daphne HOT 5
- Memory usage: Daphne loading all the file in memory (POST request) HOT 7
- Text streaming buffered issue
- Implement WebSocket Denial Response extension HOT 8
- [feature request] trailing headers HOT 1
- Add support for Python 3.12
- DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 HOT 1
- Daphne with self signed ssl HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daphne.