Security context

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

H1d3r/nuclei
master @ 05d6076
5
Fixes
0
CVEs
HIGH
Peak severity
20.0%
Coverage
Highlights
Insecure File Permissions: 1 prior fix. Scrutinize any change in this area.
v2/internal/runner/processor.go: most-fixed (1 issue). Treat as high-risk during review.
4 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.

Sandbox Escape: The tengo scripting engine previously allowed all standard library imports, enabling arbitrary command execution. The fix restricted imports to a safe allowlist, but any future expansion of script features must maintain this constraint.
Path Traversal: Template extraction wrote files using paths from archive entries without canonicalization, allowing writes outside the intended directory. The fix added path canonicalization and a prefix check; similar extraction logic in other components must apply the same guard.
SSRF: User-suppelled URLs from request paths were parsed and used for HTTP requests without an explicit Unsafe flag, enabling SSRF. The fix added a flag check; any other code path that derives target URLs from template or user input must enforce the same opt-in.