
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
pypprof adds HTTP-based endpoints for collecting profiles from a running Python application a la Go's net/http/pprof
.
Under the hood, it uses zprofile and mprofile to collect CPU and heap profiles with minimal overhead.
Register the profiling endpoints in your application:
from pypprof.net_http import start_pprof_server
start_pprof_server(port=8081)
Fetch a 30s CPU profile, and view as a flamegraph:
$ go tool pprof -http=:8088 :8081/debug/pprof/profile
Fetch a heap profile:
$ go tool pprof :8081/debug/pprof/heap
Dump stacks from your application:
$ curl localhost:8081/debug/pprof/thread?debug=1
pypprof is compatible with Python >= 2.7. Memory profiling is only available by default in Python >= 3.4. To enable memory profiling in earlier Pythons, you must patch Python and manually install mprofile.
Pull requests and issues are welcomed!
pypprof is released under the GNU Lesser General Public License, Version 3.0
FAQs
Python profiler endpoints like Go's net/http/pprof.
We found that pypprof demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.