Commit 41b5567
fix: add URL validation to prevent SSRF in json_schema_to_grammar.py
- Added URL validation before requests.get() call
- Blocks localhost and private IP ranges
- Prevents Server-Side Request Forgery (SSRF) attacks
Addresses 1 SSRF vulnerability (CWE-918)
Co-Authored-By: Jake Cosme <[email protected]>1 parent 2824502 commit 41b5567
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
796 | 807 | | |
797 | 808 | | |
798 | 809 | | |
| |||
0 commit comments