messages listlengths 2 2 | target stringlengths 476 2.02k | template stringclasses 20
values | label stringclasses 2
values | language stringclasses 3
values | framework stringclasses 3
values |
|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "page/views.py",
"line": 5,
"code": "request.GET.get('text', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "page/views.py",
"line": 6,
"code": "escape(signature)",
"kind": "httpresponse_concat",
"neutralized": true,
"reason": "Value is HTML-escaped ... | dj_safe_escape | safe | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/PageController.java",
"line": 12,
"code": "@RequestParam String text",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/PageController.java",
"line": 13,
"code": "return Map.of(\"label\", text);",
"kind": "json_body... | sb_safe_json | safe | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "item/views.py",
"line": 5,
"code": "request.GET.get('value', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "item/views.py",
"line": 6,
"code": "escape(status)",
"kind": "httpresponse_concat",
"neutralized": true,
"reason": "Value is HTML-escaped fo... | dj_safe_escape | safe | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/views/ArticleView.vue",
"line": 13,
"code": "route.query.text",
"kind": "url_query"
}
],
"sinks": [
{
"file": "src/views/ArticleView.vue",
"line": 4,
"code": "v-html=\"label\"",
"kind": "vue_v_html",
"neutralized": false,
"reason": "v-html renders its... | vue_vhtml_route | vuln | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "feedback/views.py",
"line": 5,
"code": "request.GET.get('user', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "feedback/views.py",
"line": 6,
"code": "mark_safe(label)",
"kind": "mark_safe",
"neutralized": false,
"reason": "mark_safe flags the stri... | dj_mark_safe | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "user/views.py",
"line": 4,
"code": "request.GET.get('data', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "user/templates/user.html",
"line": 2,
"code": "<a href=\"{{ target }}\">",
"kind": "href_attribute",
"neutralized": false,
"reason": "Autoesc... | dj_href_url_trap | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/ProfileController.java",
"line": 12,
"code": "@RequestParam String ref",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/ProfileController.java",
"line": 13,
"code": "return \"<h1>Hello \" + ref + \"</h1>\";",
"kin... | sb_responsebody_concat | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "view/views.py",
"line": 5,
"code": "request.GET.get('next', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "view/views.py",
"line": 6,
"code": "mark_safe(about)",
"kind": "mark_safe",
"neutralized": false,
"reason": "mark_safe flags the string as sa... | dj_mark_safe | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "note/views.py",
"line": 4,
"code": "request.GET.get('value', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "note/views.py",
"line": 5,
"code": "HttpResponse('<h1>Results for ' + signature + '</h1>')",
"kind": "httpresponse_concat",
"neutralized": fals... | dj_httpresponse_concat | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/views/MessageView.vue",
"line": 11,
"code": "route.query.content",
"kind": "url_query"
}
],
"sinks": [
{
"file": "src/views/MessageView.vue",
"line": 3,
"code": ":href=\"headline\"",
"kind": "href_binding",
"neutralized": false,
"reason": "A bound hre... | vue_href_url | vuln | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "src/main/resources/templates/feedback.html",
"line": 4,
"code": "th:text=\"${signature}\"",
"kind": "thymeleaf_text",
"neutralized": true,
"reason": "th:text HTML-escapes the model value"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [
{
... | sb_safe_thtext | safe | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/ContentController.java",
"line": 12,
"code": "@RequestParam String value",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/resources/templates/search.html",
"line": 4,
"code": "th:utext=\"${description}\"",
"kind": "thymeleaf_u... | sb_thymeleaf_utext | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/components/ArticleView.vue",
"line": 10,
"code": "location.search",
"kind": "dom_location"
}
],
"sinks": [
{
"file": "src/components/ArticleView.vue",
"line": 11,
"code": "box.value.innerHTML = signature",
"kind": "innerHTML",
"neutralized": false,
"r... | vue_innerhtml_dom | vuln | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "feedback/views.py",
"line": 5,
"code": "request.GET.get('user', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "feedback/views.py",
"line": 6,
"code": "mark_safe(tagline)",
"kind": "mark_safe",
"neutralized": false,
"reason": "mark_safe flags the st... | dj_mark_safe | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/PageController.java",
"line": 12,
"code": "@RequestParam String id",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/PageController.java",
"line": 13,
"code": "return Map.of(\"signature\", id);",
"kind": "json_body... | sb_safe_json | safe | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/components/ShowView.vue",
"line": 10,
"code": "location.search",
"kind": "dom_location"
}
],
"sinks": [
{
"file": "src/components/ShowView.vue",
"line": 11,
"code": "box.value.innerHTML = description",
"kind": "innerHTML",
"neutralized": false,
"reaso... | vue_innerhtml_dom | vuln | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/ProfileController.java",
"line": 12,
"code": "@RequestParam String value",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/resources/templates/profile.html",
"line": 4,
"code": "th:utext=\"${subject}\"",
"kind": "thymeleaf_utex... | sb_thymeleaf_utext | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "item/templates/item.html",
"line": 2,
"code": "{{ remark }}",
"kind": "template_variable",
"neutralized": true,
"reason": "Django autoescapes variables in HTML body context by default"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [
{
... | dj_safe_autoescape | safe | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/views/PostView.vue",
"line": 11,
"code": "route.query.name",
"kind": "url_query"
}
],
"sinks": [
{
"file": "src/views/PostView.vue",
"line": 3,
"code": ":href=\"summary\"",
"kind": "href_binding",
"neutralized": false,
"reason": "A bound href accepts ... | vue_href_url | vuln | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "note/views.py",
"line": 4,
"code": "request.GET.get('term', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "note/templates/note.html",
"line": 2,
"code": "<a href=\"{{ target }}\">",
"kind": "href_attribute",
"neutralized": false,
"reason": "Autoesc... | dj_href_url_trap | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "profile/templates/profile.html",
"line": 2,
"code": "{{ feedback }}",
"kind": "template_variable",
"neutralized": true,
"reason": "Django autoescapes variables in HTML body context by default"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [... | dj_safe_autoescape | safe | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "profile/views.py",
"line": 5,
"code": "request.GET.get('next', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "profile/views.py",
"line": 6,
"code": "mark_safe(tagline)",
"kind": "mark_safe",
"neutralized": false,
"reason": "mark_safe flags the stri... | dj_mark_safe | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/components/PostView.vue",
"line": 10,
"code": "location.search",
"kind": "dom_location"
}
],
"sinks": [
{
"file": "src/components/PostView.vue",
"line": 11,
"code": "box.value.innerHTML = comment",
"kind": "innerHTML",
"neutralized": false,
"reason": ... | vue_innerhtml_dom | vuln | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "src/views/RenderView.vue",
"line": 3,
"code": "{{ snippet }}",
"kind": "vue_interpolation",
"neutralized": true,
"reason": "Vue mustache interpolation HTML-escapes its value"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [
{
"file": "s... | vue_safe_interp | safe | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/views/CommentView.vue",
"line": 11,
"code": "route.query.next",
"kind": "url_query"
}
],
"sinks": [
{
"file": "src/views/CommentView.vue",
"line": 3,
"code": ":href=\"caption\"",
"kind": "href_binding",
"neutralized": false,
"reason": "A bound href ac... | vue_href_url | vuln | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/components/ViewView.vue",
"line": 10,
"code": "location.search",
"kind": "dom_location"
}
],
"sinks": [
{
"file": "src/components/ViewView.vue",
"line": 11,
"code": "box.value.innerHTML = signature",
"kind": "innerHTML",
"neutralized": false,
"reason"... | vue_innerhtml_dom | vuln | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/MessageController.java",
"line": 12,
"code": "@RequestParam String text",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/MessageController.java",
"line": 13,
"code": "return Map.of(\"about\", text);",
"kind": "jso... | sb_safe_json | safe | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/CommentController.java",
"line": 12,
"code": "@RequestParam String keyword",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/CommentController.java",
"line": 13,
"code": "return Map.of(\"remark\", keyword);",
"kind... | sb_safe_json | safe | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "page/views.py",
"line": 5,
"code": "request.GET.get('search', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "page/views.py",
"line": 6,
"code": "mark_safe(greeting)",
"kind": "mark_safe",
"neutralized": false,
"reason": "mark_safe flags the string ... | dj_mark_safe | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "src/main/resources/templates/item.html",
"line": 4,
"code": "th:text=\"${snippet}\"",
"kind": "thymeleaf_text",
"neutralized": true,
"reason": "th:text HTML-escapes the model value"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [
{
"fi... | sb_safe_thtext | safe | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/MessageController.java",
"line": 12,
"code": "@RequestParam String name",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/MessageController.java",
"line": 13,
"code": "return Map.of(\"review\", name);",
"kind": "js... | sb_safe_json | safe | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/UserController.java",
"line": 12,
"code": "@RequestParam String value",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/UserController.java",
"line": 13,
"code": "return Map.of(\"snippet\", value);",
"kind": "json_... | sb_safe_json | safe | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/ContentController.java",
"line": 12,
"code": "@RequestParam String q",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/resources/templates/profile.html",
"line": 4,
"code": "th:utext=\"${description}\"",
"kind": "thymeleaf_utex... | sb_thymeleaf_utext | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "post/views.py",
"line": 5,
"code": "request.GET.get('input', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "post/views.py",
"line": 6,
"code": "escape(description)",
"kind": "httpresponse_concat",
"neutralized": true,
"reason": "Value is HTML-escap... | dj_safe_escape | safe | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/views/ArticleView.vue",
"line": 11,
"code": "route.query.ref",
"kind": "url_query"
}
],
"sinks": [
{
"file": "src/views/ArticleView.vue",
"line": 3,
"code": ":href=\"summary\"",
"kind": "href_binding",
"neutralized": false,
"reason": "A bound href acc... | vue_href_url | vuln | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "user/views.py",
"line": 4,
"code": "request.GET.get('user', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "user/views.py",
"line": 5,
"code": "HttpResponse('<h1>Results for ' + comment + '</h1>')",
"kind": "httpresponse_concat",
"neutralized": false,
... | dj_httpresponse_concat | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "src/main/resources/templates/article.html",
"line": 4,
"code": "th:text=\"${remark}\"",
"kind": "thymeleaf_text",
"neutralized": true,
"reason": "th:text HTML-escapes the model value"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [
{
"... | sb_safe_thtext | safe | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "page/views.py",
"line": 4,
"code": "request.GET.get('ref', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "page/templates/page.html",
"line": 2,
"code": "<a href=\"{{ target }}\">",
"kind": "href_attribute",
"neutralized": false,
"reason": "Autoesca... | dj_href_url_trap | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "note/views.py",
"line": 5,
"code": "request.GET.get('page', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "note/views.py",
"line": 6,
"code": "mark_safe(bio)",
"kind": "mark_safe",
"neutralized": false,
"reason": "mark_safe flags the string as safe... | dj_mark_safe | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "page/views.py",
"line": 5,
"code": "request.GET.get('input', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "page/views.py",
"line": 6,
"code": "mark_safe(review)",
"kind": "mark_safe",
"neutralized": false,
"reason": "mark_safe flags the string as ... | dj_mark_safe | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/SearchController.java",
"line": 12,
"code": "@RequestParam String q",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/SearchController.java",
"line": 13,
"code": "return \"<h1>Hello \" + q + \"</h1>\";",
"kind": "r... | sb_responsebody_concat | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "preview/views.py",
"line": 4,
"code": "request.GET.get('msg', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "preview/templates/preview.html",
"line": 2,
"code": "<a href=\"{{ target }}\">",
"kind": "href_attribute",
"neutralized": false,
"reason": ... | dj_href_url_trap | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "page/views.py",
"line": 4,
"code": "request.GET.get('q', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "page/views.py",
"line": 5,
"code": "HttpResponse('<h1>Results for ' + nickname + '</h1>')",
"kind": "httpresponse_concat",
"neutralized": false,
... | dj_httpresponse_concat | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "src/views/SearchView.vue",
"line": 3,
"code": "{{ tagline }}",
"kind": "vue_interpolation",
"neutralized": true,
"reason": "Vue mustache interpolation HTML-escapes its value"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [
{
"file": "s... | vue_safe_interp | safe | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "feedback/views.py",
"line": 5,
"code": "request.GET.get('keyword', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "feedback/views.py",
"line": 6,
"code": "escape(title)",
"kind": "httpresponse_concat",
"neutralized": true,
"reason": "Value is HTML-e... | dj_safe_escape | safe | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "post/views.py",
"line": 5,
"code": "request.GET.get('search', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "post/views.py",
"line": 6,
"code": "escape(remark)",
"kind": "httpresponse_concat",
"neutralized": true,
"reason": "Value is HTML-escaped f... | dj_safe_escape | safe | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/components/PageView.vue",
"line": 10,
"code": "location.search",
"kind": "dom_location"
}
],
"sinks": [
{
"file": "src/components/PageView.vue",
"line": 11,
"code": "box.value.innerHTML = signature",
"kind": "innerHTML",
"neutralized": false,
"reason"... | vue_innerhtml_dom | vuln | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/PageController.java",
"line": 13,
"code": "@RequestParam String page",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/PageController.java",
"line": 15,
"code": ".body(\"<div>\" + page + \"</div>\")",
"kind": "resp... | sb_responseentity | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "feedback/views.py",
"line": 4,
"code": "request.GET.get('name', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "feedback/templates/feedback.html",
"line": 2,
"code": "<a href=\"{{ target }}\">",
"kind": "href_attribute",
"neutralized": false,
"reaso... | dj_href_url_trap | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/UserController.java",
"line": 12,
"code": "@RequestParam String next",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/resources/templates/comment.html",
"line": 4,
"code": "th:utext=\"${about}\"",
"kind": "thymeleaf_utext",
... | sb_thymeleaf_utext | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "src/views/NoteView.vue",
"line": 3,
"code": "{{ nickname }}",
"kind": "vue_interpolation",
"neutralized": true,
"reason": "Vue mustache interpolation HTML-escapes its value"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [
{
"file": "sr... | vue_safe_interp | safe | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/ProfileController.java",
"line": 13,
"code": "@RequestParam String msg",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/ProfileController.java",
"line": 15,
"code": ".body(\"<div>\" + msg + \"</div>\")",
"kind": "... | sb_responseentity | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "src/views/MessageView.vue",
"line": 3,
"code": "{{ nickname }}",
"kind": "vue_interpolation",
"neutralized": true,
"reason": "Vue mustache interpolation HTML-escapes its value"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [
{
"file": ... | vue_safe_interp | safe | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/components/ShowView.vue",
"line": 10,
"code": "location.search",
"kind": "dom_location"
}
],
"sinks": [
{
"file": "src/components/ShowView.vue",
"line": 11,
"code": "box.value.innerHTML = label",
"kind": "innerHTML",
"neutralized": false,
"reason": "A... | vue_innerhtml_dom | vuln | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/UserController.java",
"line": 13,
"code": "@RequestParam String q",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/UserController.java",
"line": 15,
"code": ".body(\"<div>\" + q + \"</div>\")",
"kind": "responseen... | sb_responseentity | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/CommentController.java",
"line": 12,
"code": "@RequestParam String q",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/resources/templates/show.html",
"line": 4,
"code": "th:utext=\"${label}\"",
"kind": "thymeleaf_utext",
"n... | sb_thymeleaf_utext | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/ContentController.java",
"line": 12,
"code": "@RequestParam String input",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/ContentController.java",
"line": 13,
"code": "return Map.of(\"headline\", input);",
"kind":... | sb_safe_json | safe | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "message/templates/message.html",
"line": 2,
"code": "{{ remark }}",
"kind": "template_variable",
"neutralized": true,
"reason": "Django autoescapes variables in HTML body context by default"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [
... | dj_safe_autoescape | safe | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "user/views.py",
"line": 4,
"code": "request.GET.get('text', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "user/templates/user.html",
"line": 2,
"code": "<a href=\"{{ target }}\">",
"kind": "href_attribute",
"neutralized": false,
"reason": "Autoesc... | dj_href_url_trap | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "message/views.py",
"line": 4,
"code": "request.GET.get('input', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "message/views.py",
"line": 5,
"code": "HttpResponse('<h1>Results for ' + review + '</h1>')",
"kind": "httpresponse_concat",
"neutralized": f... | dj_httpresponse_concat | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/UserController.java",
"line": 12,
"code": "@RequestParam String value",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/resources/templates/search.html",
"line": 4,
"code": "th:utext=\"${description}\"",
"kind": "thymeleaf_utex... | sb_thymeleaf_utext | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/CommentController.java",
"line": 12,
"code": "@RequestParam String next",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/resources/templates/render.html",
"line": 4,
"code": "th:utext=\"${note}\"",
"kind": "thymeleaf_utext",
... | sb_thymeleaf_utext | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/ProfileController.java",
"line": 12,
"code": "@RequestParam String search",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/ProfileController.java",
"line": 13,
"code": "return \"<h1>Hello \" + search + \"</h1>\";",
... | sb_responsebody_concat | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "show/views.py",
"line": 4,
"code": "request.GET.get('content', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "show/views.py",
"line": 5,
"code": "HttpResponse('<h1>Results for ' + bio + '</h1>')",
"kind": "httpresponse_concat",
"neutralized": false,
... | dj_httpresponse_concat | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "message/templates/message.html",
"line": 2,
"code": "{{ bio }}",
"kind": "template_variable",
"neutralized": true,
"reason": "Django autoescapes variables in HTML body context by default"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [
{
... | dj_safe_autoescape | safe | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/PageController.java",
"line": 12,
"code": "@RequestParam String keyword",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/PageController.java",
"line": 13,
"code": "return \"<h1>Hello \" + keyword + \"</h1>\";",
"k... | sb_responsebody_concat | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "src/main/resources/templates/note.html",
"line": 4,
"code": "th:text=\"${remark}\"",
"kind": "thymeleaf_text",
"neutralized": true,
"reason": "th:text HTML-escapes the model value"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [
{
"fil... | sb_safe_thtext | safe | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "user/views.py",
"line": 5,
"code": "Note.objects.latest('id')",
"kind": "database_record"
}
],
"sinks": [
{
"file": "user/templates/user.html",
"line": 4,
"code": "{{ message|safe }}",
"kind": "safe_filter",
"neutralized": false,
"reason": "The |safe filt... | dj_safe_filter | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "message/views.py",
"line": 5,
"code": "request.GET.get('text', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "message/views.py",
"line": 6,
"code": "escape(status)",
"kind": "httpresponse_concat",
"neutralized": true,
"reason": "Value is HTML-escap... | dj_safe_escape | safe | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/UserController.java",
"line": 13,
"code": "@RequestParam String query",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/UserController.java",
"line": 15,
"code": ".body(\"<div>\" + query + \"</div>\")",
"kind": "re... | sb_responseentity | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "profile/templates/profile.html",
"line": 2,
"code": "{{ description }}",
"kind": "template_variable",
"neutralized": true,
"reason": "Django autoescapes variables in HTML body context by default"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns"... | dj_safe_autoescape | safe | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/webapp/WEB-INF/views/item.jsp",
"line": 5,
"code": "param.value",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/webapp/WEB-INF/views/item.jsp",
"line": 5,
"code": "${param.value}",
"kind": "jsp_el",
"neutralized": false,
"reason": "... | sb_jsp_param | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "article/views.py",
"line": 5,
"code": "request.GET.get('query', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "article/views.py",
"line": 6,
"code": "mark_safe(remark)",
"kind": "mark_safe",
"neutralized": false,
"reason": "mark_safe flags the stri... | dj_mark_safe | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "view/views.py",
"line": 5,
"code": "request.GET.get('text', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "view/views.py",
"line": 6,
"code": "mark_safe(bio)",
"kind": "mark_safe",
"neutralized": false,
"reason": "mark_safe flags the string as safe... | dj_mark_safe | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/ViewController.java",
"line": 12,
"code": "@RequestParam String value",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/resources/templates/feedback.html",
"line": 4,
"code": "th:utext=\"${signature}\"",
"kind": "thymeleaf_utex... | sb_thymeleaf_utext | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/views/PreviewView.vue",
"line": 13,
"code": "route.query.next",
"kind": "url_query"
}
],
"sinks": [
{
"file": "src/views/PreviewView.vue",
"line": 4,
"code": "v-html=\"greeting\"",
"kind": "vue_v_html",
"neutralized": false,
"reason": "v-html renders ... | vue_vhtml_route | vuln | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "src/components/ShowView.vue",
"line": 10,
"code": "box.value.textContent = about",
"kind": "textContent",
"neutralized": true,
"reason": "textContent sets text, never parses HTML"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [
{
"file... | vue_safe_textcontent | safe | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "src/main/resources/templates/post.html",
"line": 4,
"code": "th:text=\"${tagline}\"",
"kind": "thymeleaf_text",
"neutralized": true,
"reason": "th:text HTML-escapes the model value"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [
{
"fi... | sb_safe_thtext | safe | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "profile/views.py",
"line": 4,
"code": "request.GET.get('ref', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "profile/views.py",
"line": 5,
"code": "HttpResponse('<h1>Results for ' + bio + '</h1>')",
"kind": "httpresponse_concat",
"neutralized": false,... | dj_httpresponse_concat | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/ViewController.java",
"line": 13,
"code": "@RequestParam String msg",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/ViewController.java",
"line": 15,
"code": ".body(\"<div>\" + msg + \"</div>\")",
"kind": "respon... | sb_responseentity | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/views/ProfileView.vue",
"line": 13,
"code": "route.query.search",
"kind": "url_query"
}
],
"sinks": [
{
"file": "src/views/ProfileView.vue",
"line": 4,
"code": "v-html=\"tagline\"",
"kind": "vue_v_html",
"neutralized": false,
"reason": "v-html renders... | vue_vhtml_route | vuln | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/components/ShowView.vue",
"line": 10,
"code": "location.search",
"kind": "dom_location"
}
],
"sinks": [
{
"file": "src/components/ShowView.vue",
"line": 11,
"code": "box.value.innerHTML = bio",
"kind": "innerHTML",
"neutralized": false,
"reason": "Ass... | vue_innerhtml_dom | vuln | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/ContentController.java",
"line": 13,
"code": "@RequestParam String user",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/ContentController.java",
"line": 15,
"code": ".body(\"<div>\" + user + \"</div>\")",
"kind":... | sb_responseentity | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "message/templates/message.html",
"line": 2,
"code": "{{ description }}",
"kind": "template_variable",
"neutralized": true,
"reason": "Django autoescapes variables in HTML body context by default"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns"... | dj_safe_autoescape | safe | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "src/main/resources/templates/item.html",
"line": 4,
"code": "th:text=\"${nickname}\"",
"kind": "thymeleaf_text",
"neutralized": true,
"reason": "th:text HTML-escapes the model value"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [
{
"f... | sb_safe_thtext | safe | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/ViewController.java",
"line": 12,
"code": "@RequestParam String ref",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/ViewController.java",
"line": 13,
"code": "return Map.of(\"label\", ref);",
"kind": "json_body",... | sb_safe_json | safe | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/components/SearchView.vue",
"line": 10,
"code": "location.search",
"kind": "dom_location"
}
],
"sinks": [
{
"file": "src/components/SearchView.vue",
"line": 11,
"code": "box.value.innerHTML = summary",
"kind": "innerHTML",
"neutralized": false,
"reaso... | vue_innerhtml_dom | vuln | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/PageController.java",
"line": 13,
"code": "@RequestParam String id",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/PageController.java",
"line": 15,
"code": ".body(\"<div>\" + id + \"</div>\")",
"kind": "response... | sb_responseentity | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "src/main/resources/templates/search.html",
"line": 4,
"code": "th:text=\"${bio}\"",
"kind": "thymeleaf_text",
"neutralized": true,
"reason": "th:text HTML-escapes the model value"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [
{
"file... | sb_safe_thtext | safe | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "post/views.py",
"line": 4,
"code": "request.GET.get('term', '')",
"kind": "http_query"
}
],
"sinks": [
{
"file": "post/templates/post.html",
"line": 2,
"code": "<a href=\"{{ target }}\">",
"kind": "href_attribute",
"neutralized": false,
"reason": "Autoesc... | dj_href_url_trap | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/ProfileController.java",
"line": 12,
"code": "@RequestParam String input",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/ProfileController.java",
"line": 13,
"code": "return \"<h1>Hello \" + input + \"</h1>\";",
... | sb_responsebody_concat | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/views/CommentView.vue",
"line": 13,
"code": "route.query.search",
"kind": "url_query"
}
],
"sinks": [
{
"file": "src/views/CommentView.vue",
"line": 4,
"code": "v-html=\"greeting\"",
"kind": "vue_v_html",
"neutralized": false,
"reason": "v-html render... | vue_vhtml_route | vuln | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "src/main/resources/templates/comment.html",
"line": 4,
"code": "th:text=\"${snippet}\"",
"kind": "thymeleaf_text",
"neutralized": true,
"reason": "th:text HTML-escapes the model value"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [
{
... | sb_safe_thtext | safe | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [],
"sinks": [
{
"file": "src/views/MessageView.vue",
"line": 3,
"code": "{{ caption }}",
"kind": "vue_interpolation",
"neutralized": true,
"reason": "Vue mustache interpolation HTML-escapes its value"
}
],
"vulnerable": false,
"findings": [],
"safe_patterns": [
{
"file": "... | vue_safe_interp | safe | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "page/views.py",
"line": 5,
"code": "Feedback.objects.latest('id')",
"kind": "database_record"
}
],
"sinks": [
{
"file": "page/templates/page.html",
"line": 4,
"code": "{{ caption|safe }}",
"kind": "safe_filter",
"neutralized": false,
"reason": "The |safe ... | dj_safe_filter | vuln | Python | Django |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/ViewController.java",
"line": 12,
"code": "@RequestParam String value",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/ViewController.java",
"line": 13,
"code": "return \"<h1>Hello \" + value + \"</h1>\";",
"kind"... | sb_responsebody_concat | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/PageController.java",
"line": 13,
"code": "@RequestParam String input",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/PageController.java",
"line": 15,
"code": ".body(\"<div>\" + input + \"</div>\")",
"kind": "re... | sb_responseentity | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/SearchController.java",
"line": 13,
"code": "@RequestParam String ref",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/SearchController.java",
"line": 15,
"code": ".body(\"<div>\" + ref + \"</div>\")",
"kind": "re... | sb_responseentity | vuln | Java | Spring Boot |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/components/MessageView.vue",
"line": 10,
"code": "location.search",
"kind": "dom_location"
}
],
"sinks": [
{
"file": "src/components/MessageView.vue",
"line": 11,
"code": "box.value.innerHTML = title",
"kind": "innerHTML",
"neutralized": false,
"reaso... | vue_innerhtml_dom | vuln | JavaScript | Vue 3 |
[
{
"role": "system",
"content": "You are an application-security analyst specialised in cross-site scripting (XSS).\nGiven source files (each line prefixed with its line number), trace untrusted input to output sinks and decide whether an XSS vulnerability exists.\n\nRules:\n- Cite exact line numbers from th... | {
"sources": [
{
"file": "src/main/java/com/app/CommentController.java",
"line": 12,
"code": "@RequestParam String text",
"kind": "request_param"
}
],
"sinks": [
{
"file": "src/main/java/com/app/CommentController.java",
"line": 13,
"code": "return Map.of(\"blurb\", text);",
"kind": "jso... | sb_safe_json | safe | Java | Spring Boot |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.