Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

nodejs/node-addon-api
main @ 13c28f6
3
Fixes
0
CVEs
MEDIUM
Peak severity
Highlights
Denial of Service: 3 prior fixes. Scrutinize any change in this area.
node-addon-api: most-fixed (1 issue). Treat as high-risk during review.
0 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Denial of Service: Heap-allocated ThreadSafeData instances were leaked during failed non-blocking calls, leading to memory exhaustion if an application repeatedly fails thread-safe callbacks. Developers must ensure all failure branches explicitly free dynamically allocated context objects.
Denial of Service: Memory leaks occurred when progress callbacks completed without deleting the corresponding ThreadSafeData object. Proper cleanup logic must be consistently applied upon callback completion to avoid gradual resource exhaustion.
Denial of Service: Improper deallocation of the node_async_context structure during napi_async_destroy calls causes persistent memory buildup whenever asynchronous resources are torn down.