Build 9 success
gitbay-security on main · cb2a1bf37e · queued 2026-11-15 04:00 UTC · finished 2026-11-15 04:39 UTC · ran 1m35s
setup
$ git clone ssh://git@127.0.0.1/krz/krz.sh.git (cb2a1bf37e)
step 1/2 mkdir -p "$GITBAY_RESULTS"
step 2/2 opengrep scan --quiet --disable-version-check --config /opt/opengrep-rules --sarif-output="$GITBAY_RESULTS/opengrep.sarif" .
┌──────────────────┐
│ 25 Code Findings │
└──────────────────┘
templates/app.html
❯❱ opt.opengrep-rules.generic.html-templates.security.var-in-href
Detected a template variable used in an anchor tag with the 'href' attribute. This allows a
malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS)
attacks. If using Flask, use 'url_for()' to safely generate a URL. If using Django, use the 'url'
filter to safely generate a URL. If using Mustache, use a URL encoding library, or prepend a slash
'/' to the variable for relative links (`href="/{{link}}"`). You may also consider setting the
Content Security Policy (CSP) header.
20┆ {% if page.keywords.repo %}<a class="btn" href="{{ page.keywords.repo }}">source
→</a>{% endif %}
❯❱ opt.opengrep-rules.python.flask.security.xss.audit.template-unescaped-with-safe
Detected a segment of a Flask template where autoescaping is explicitly disabled with '| safe'
filter. This allows rendering of raw HTML in this segment. Ensure no user data is rendered here,
otherwise this is a cross-site scripting (XSS) vulnerability.
43┆ {{ body | safe }}
❯❱ opt.opengrep-rules.generic.html-templates.security.var-in-href
Detected a template variable used in an anchor tag with the 'href' attribute. This allows a
malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS)
attacks. If using Flask, use 'url_for()' to safely generate a URL. If using Django, use the 'url'
filter to safely generate a URL. If using Mustache, use a URL encoding library, or prepend a slash
'/' to the variable for relative links (`href="/{{link}}"`). You may also consider setting the
Content Security Policy (CSP) header.
47┆ {% if page.keywords.appstore %}<a href="{{ page.keywords.appstore }}">app store</a>{% endif
%}
⋮┆----------------------------------------
48┆ {% if page.keywords.repo %}<a href="{{ page.keywords.repo }}">source</a>{% endif %}
⋮┆----------------------------------------
49┆ {% if page.keywords.privacy %}<a href="{{ page.keywords.privacy }}">privacy policy</a>{%
endif %}
templates/apps.html
❯❱ opt.opengrep-rules.python.flask.security.xss.audit.template-unescaped-with-safe
Detected a segment of a Flask template where autoescaping is explicitly disabled with '| safe'
filter. This allows rendering of raw HTML in this segment. Ensure no user data is rendered here,
otherwise this is a cross-site scripting (XSS) vulnerability.
8┆ <div class="prose apps-intro">{{ body | safe }}</div>
❯❱ opt.opengrep-rules.generic.html-templates.security.unquoted-attribute-var
Detected a unquoted template variable as an attribute. If unquoted, a malicious actor could inject
custom JavaScript handlers. To fix this, add quotes around the template expression, like this: "{{
expr }}".
17┆ <h2 class="app-name"><a class="app-card-link" href="/{{ page.url | replace("index.html",
"") }}">{{ page.title }}</a></h2>
❯❱ opt.opengrep-rules.generic.html-templates.security.var-in-href
Detected a template variable used in an anchor tag with the 'href' attribute. This allows a
malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS)
attacks. If using Flask, use 'url_for()' to safely generate a URL. If using Django, use the 'url'
filter to safely generate a URL. If using Mustache, use a URL encoding library, or prepend a slash
'/' to the variable for relative links (`href="/{{link}}"`). You may also consider setting the
Content Security Policy (CSP) header.
23┆ {% if page.keywords.appstore %}<a href="{{ page.keywords.appstore }}">app store</a>{% endif
%}
templates/base.html
❯❱ opt.opengrep-rules.generic.html-templates.security.unquoted-attribute-var
Detected a unquoted template variable as an attribute. If unquoted, a malicious actor could inject
custom JavaScript handlers. To fix this, add quotes around the template expression, like this: "{{
expr }}".
15┆ <meta property="og:url" content="{{ page.url | replace("index.html", "") | absolute }}">
⋮┆----------------------------------------
16┆ <meta property="og:image" content="{{ "og.png" | absolute }}">
templates/index.html
❯❱ opt.opengrep-rules.python.flask.security.xss.audit.template-unescaped-with-safe
Detected a segment of a Flask template where autoescaping is explicitly disabled with '| safe'
filter. This allows rendering of raw HTML in this segment. Ensure no user data is rendered here,
otherwise this is a cross-site scripting (XSS) vulnerability.
18┆ <div class="prose">{{ body | safe }}</div>
templates/page.html
❯❱ opt.opengrep-rules.generic.html-templates.security.unquoted-attribute-var
Detected a unquoted template variable as an attribute. If unquoted, a malicious actor could inject
custom JavaScript handlers. To fix this, add quotes around the template expression, like this: "{{
expr }}".
8┆ <p class="back"><a href="/{{ (page.url | split("/"))[:-2] | join("/") }}/">←
back</a></p>
⋮┆----------------------------------------
10┆ <a class="app-ref"{% if icon_page.keywords.tint %} style="--tint: {{
icon_page.keywords.tint }}"{% endif %} href="/{{ icon_page.url | replace("index.html", "")
}}">
❯❱ opt.opengrep-rules.python.flask.security.xss.audit.template-unescaped-with-safe
Detected a segment of a Flask template where autoescaping is explicitly disabled with '| safe'
filter. This allows rendering of raw HTML in this segment. Ensure no user data is rendered here,
otherwise this is a cross-site scripting (XSS) vulnerability.
19┆ {{ body | safe }}
templates/partials/app-art.html
❯❱ opt.opengrep-rules.generic.html-templates.security.unquoted-attribute-var
Detected a unquoted template variable as an attribute. If unquoted, a malicious actor could inject
custom JavaScript handlers. To fix this, add quotes around the template expression, like this: "{{
expr }}".
3┆ <div class="{{ art_class | default("app-art") }}{% if not page.keywords.hero %} app-art-
composed{% endif %}">
templates/partials/app-icon.html
❯❱ opt.opengrep-rules.generic.html-templates.security.unquoted-attribute-var
Detected a unquoted template variable as an attribute. If unquoted, a malicious actor could inject
custom JavaScript handlers. To fix this, add quotes around the template expression, like this: "{{
expr }}".
3┆ <img class="{{ icon_class | default("app-icon") }}" src="{{ p.keywords.icon }}" alt=""
width="1024" height="1024">
⋮┆----------------------------------------
5┆ <span class="{{ icon_class | default("app-icon") }} app-icon-mono" aria-hidden="true">{{
p.title[:1] | upper }}</span>
templates/partials/app-store.html
❯❱ opt.opengrep-rules.generic.html-templates.security.var-in-href
Detected a template variable used in an anchor tag with the 'href' attribute. This allows a
malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS)
attacks. If using Flask, use 'url_for()' to safely generate a URL. If using Django, use the 'url'
filter to safely generate a URL. If using Mustache, use a URL encoding library, or prepend a slash
'/' to the variable for relative links (`href="/{{link}}"`). You may also consider setting the
Content Security Policy (CSP) header.
2┆ <a class="btn-store" href="{{ page.keywords.appstore }}">
templates/partials/apps.html
❯❱ opt.opengrep-rules.generic.html-templates.security.unquoted-attribute-var
Detected a unquoted template variable as an attribute. If unquoted, a malicious actor could inject
custom JavaScript handlers. To fix this, add quotes around the template expression, like this: "{{
expr }}".
5┆ <a class="app-row" href="/{{ page.url | replace("index.html", "") }}">
templates/partials/services.html
❯❱ opt.opengrep-rules.generic.html-templates.security.var-in-href
Detected a template variable used in an anchor tag with the 'href' attribute. This allows a
malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS)
attacks. If using Flask, use 'url_for()' to safely generate a URL. If using Django, use the 'url'
filter to safely generate a URL. If using Mustache, use a URL encoding library, or prepend a slash
'/' to the variable for relative links (`href="/{{link}}"`). You may also consider setting the
Content Security Policy (CSP) header.
8┆ <a class="svc-card" href="{{ item.url }}">
templates/section.html
❯❱ opt.opengrep-rules.python.flask.security.xss.audit.template-unescaped-with-safe
Detected a segment of a Flask template where autoescaping is explicitly disabled with '| safe'
filter. This allows rendering of raw HTML in this segment. Ensure no user data is rendered here,
otherwise this is a cross-site scripting (XSS) vulnerability.
9┆ {{ body | safe }}
❯❱ opt.opengrep-rules.generic.html-templates.security.unquoted-attribute-var
Detected a unquoted template variable as an attribute. If unquoted, a malicious actor could inject
custom JavaScript handlers. To fix this, add quotes around the template expression, like this: "{{
expr }}".
22┆ <a class="pl-name" href="/{{ page.url | replace("index.html", "") }}">{{ page.title }}</a>
❯❱ opt.opengrep-rules.generic.html-templates.security.var-in-href
Detected a template variable used in an anchor tag with the 'href' attribute. This allows a
malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS)
attacks. If using Flask, use 'url_for()' to safely generate a URL. If using Django, use the 'url'
filter to safely generate a URL. If using Mustache, use a URL encoding library, or prepend a slash
'/' to the variable for relative links (`href="/{{link}}"`). You may also consider setting the
Content Security Policy (CSP) header.
27┆ {% if page.keywords.appstore %}<a class="pl-link" href="{{ page.keywords.appstore }}">app
store →</a>{% endif %}
⋮┆----------------------------------------
28┆ {% if page.keywords.repo %}<a class="pl-link" href="{{ page.keywords.repo }}">source
→</a>{% endif %}
templates/services.html
❯❱ opt.opengrep-rules.python.flask.security.xss.audit.template-unescaped-with-safe
Detected a segment of a Flask template where autoescaping is explicitly disabled with '| safe'
filter. This allows rendering of raw HTML in this segment. Ensure no user data is rendered here,
otherwise this is a cross-site scripting (XSS) vulnerability.
8┆ <div class="prose apps-intro">{{ body | safe }}</div>
results uploaded