GHSA-7ww3-xvf5-cxwm: ciguard Web UI Is Missing HTTP Vulnerability

LOW
CVSS 4.3
CWE-693
Published
Advisory Summary

GHSA-7ww3-xvf5-cxwm is a LOW (CVSS 4.3) web ui is missing http vulnerability (CWE-693: Protection Mechanism Failure) affecting ciguard libraries in the PyPI ecosystem. The issue involves web ui is missing http defence-in-depth headers. Remediation is available by upgrading affected packages to version 0.8.2.

GHSA-7ww3-xvf5-cxwm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-7ww3-xvf5-cxwm
Severity LOW
CVSS v3.1 Base Score 4.3
CWE Classification CWE-693: Protection Mechanism Failure
Affected Product ciguard
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix GHSA-7ww3-xvf5-cxwm

To remediate this vulnerability, upgrade all affected ciguard dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ciguard fixed: 0.8.2
pip install ciguard>=0.8.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show ciguard

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-7ww3-xvf5-cxwm, inspect your installed packages using pip:

pip show ciguard

Analyze the terminal output to locate any version of ciguard in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.8.2), your application is affected.

Note: The pip show ciguard command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-693: Protection Mechanism Failure, where the product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product. In ciguard, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary ciguard's FastAPI Web UI (`src/ciguard/web/app.py`) does not set HTTP defence-in-depth headers. OWASP ZAP baseline scan flagged 11 alerts: missing Content-Security-Policy (Medium), X-Frame-Options (Medium), Sub-Resource-Integrity on `/api/docs` (Medium), COOP / COEP / CORP (Low), Permissions-Policy (Low), X-Content-Type-Options (Low). ## Threat scenario For local-only deployment (current intent): minimal — there's no untrusted browser context, no third-party hosting, no auth surface to protect. For public hosting (PRD Slice 9 GitHub App or hosted dashboard, future): each missing header reduces a defence layer: - Missing CSP → injected XSS would have no second-line defence (first-line Jinja autoescape remains intact) - Missing X-Frame-Options → clickjacking against any UI button would be possible - Missing SRI on jsdelivr-hosted Swagger UI → if jsdelivr were compromised, attacker JS would run in the docs page context ## Patch - New `SecurityHeadersMiddleware` at `src/ciguard/web/security_headers.py` injecting: X-Content-Type-Options nosniff, X-Frame-Options DENY, Referrer-Policy no-referrer, Permissions-Policy `interest-cohort=()`, Cross-Origin-Opener-Policy same-origin, Cross-Origin-Resource-Policy same-origin, plus per-path CSP with `/api/docs` + `/api/redoc` carve-out for cdn.jsdelivr.net (Swagger UI / ReDoc dependency). - COEP intentionally NOT set: would break Swagger UI's cross-origin assets, and ciguard makes no SharedArrayBuffer use that would benefit. - Registered via `app.add_middleware(SecurityHeadersMiddleware)`. - 6 regression tests in `tests/test_web.py::TestSecurityHeaders`. ## Discovery Found by OWASP ZAP baseline scan during ciguard's first self-conducted pentest cycle, 2026-04-26. ## CVSS Scoring - CVSS v3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N` — 4.3 (Medium per v3.1 thresholds) - CVSS v4.0: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N` — first.org calc 4.3 (Low); GitHub's calc 2.1 (Low). All consistent at Low/borderline. ## Verification ``` $ curl -sI http://127.0.0.1:8080/ | grep -E '^(X-Frame|X-Content|Referrer|Permissions|Cross-Origin|Content-Security):' # Pre-fix: empty # Post-fix: 7 headers present ``` ## Resources - Fix released in [v0.8.2](https://github.com/Jo-Jo98/ciguard/releases/tag/v0.8.2) - CI regression gate added in [v0.8.3](https://github.com/Jo-Jo98/ciguard/releases/tag/v0.8.3)

GHSA-7ww3-xvf5-cxwm Affected ciguard Versions

1 component(s)
Fixed Versions:
0.8.2
Product / Package Ecosystem Affected Versions Fixed Version
ciguard
PyPI
≥ 0.1.0
< 0.8.2
0.8.2

References

Frequently Asked Questions

What is GHSA-7ww3-xvf5-cxwm?
GHSA-7ww3-xvf5-cxwm is a security vulnerability in ciguard involving Web UI is missing HTTP defence-in-depth headers under CWE-693: Protection Mechanism Failure.
Which ciguard versions are affected?
Affected versions include releases prior to 0.8.2 across affected packages: ciguard.
What version fixes GHSA-7ww3-xvf5-cxwm?
Upgrading to 0.8.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ciguard affected?
Yes, ciguard is affected in releases prior to 0.8.2. Upgrade your dependency to 0.8.2 or later.
What is the CVSS score of GHSA-7ww3-xvf5-cxwm?
GHSA-7ww3-xvf5-cxwm has a CVSS v3.1 base score of 4.3 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N.
What CWE is associated with GHSA-7ww3-xvf5-cxwm?
GHSA-7ww3-xvf5-cxwm is classified under CWE-693: Protection Mechanism Failure (The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.).
How can I check PyPI dependencies for GHSA-7ww3-xvf5-cxwm?
Run the dependency tree command: 'pip show ciguard'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7ww3-xvf5-cxwm",
  "modified" : "2026-05-05T22:20:04Z",
  "published" : "2026-05-05T22:20:04Z",
  "aliases" : [ ],
  "summary" : "ciguard: Web UI is missing HTTP defence-in-depth headers",
  "details" : "## Summary\n\nciguard's FastAPI Web UI (`src/ciguard/web/app.py`) does not set HTTP defence-in-depth headers. OWASP ZAP baseline scan flagged 11 alerts: missing Content-Security-Policy (Medium), X-Frame-Options (Medium), Sub-Resource-Integrity on `/api/docs` (Medium), COOP / COEP / CORP (Low), Permissions-Policy (Low), X-Content-Type-Options (Low).\n\n## Threat scenario\n\nFor local-only deployment (current intent): minimal — there's no untrusted browser context, no third-party hosting, no auth surface to protect.\n\nFor public hosting (PRD Slice 9 GitHub App or hosted dashboard, future): each missing header reduces a defence layer:\n\n- Missing CSP → injected XSS would have no second-line defence (first-line Jinja autoescape remains intact)\n- Missing X-Frame-Options → clickjacking against any UI button would be possible\n- Missing SRI on jsdelivr-hosted Swagger UI → if jsdelivr were compromised, attacker JS would run in the docs page context\n\n## Patch\n\n- New `SecurityHeadersMiddleware` at `src/ciguard/web/security_headers.py` injecting: X-Content-Type-Options nosniff, X-Frame-Options DENY, Referrer-Policy no-referrer, Permissions-Policy `interest-cohort=()`, Cross-Origin-Opener-Policy same-origin, Cross-Origin-Resource-Policy same-origin, plus per-path CSP with `/api/docs` + `/api/redoc` carve-out for cdn.jsdelivr.net (Swagger UI / ReDoc dependency).\n- COEP intentionally NOT set: would break Swagger UI's cross-origin assets, and ciguard makes no SharedArrayBuffer use that would benefit.\n- Registered via `app.add_middleware(SecurityHeadersMiddleware)`.\n- 6 regression tests in `tests/test_web.py::TestSecurityHeaders`.\n\n## Discovery\n\nFound by OWASP ZAP baseline scan during ciguard's first self-conducted pentest cycle, 2026-04-26.\n\n## CVSS Scoring\n\n- CVSS v3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N` — 4.3 (Medium per v3.1 thresholds)\n- CVSS v4.0: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N` — first.org calc 4.3 (Low); GitHub's calc 2.1 (Low). All consistent at Low/borderline.\n\n## Verification\n\n```\n$ curl -sI http://127.0.0.1:8080/ | grep -E '^(X-Frame|X-Content|Referrer|Permissions|Cross-Origin|Content-Security):'\n# Pre-fix: empty\n# Post-fix: 7 headers present\n```\n\n## Resources\n\n- Fix released in [v0.8.2](https://github.com/Jo-Jo98/ciguard/releases/tag/v0.8.2)\n- CI regression gate added in [v0.8.3](https://github.com/Jo-Jo98/ciguard/releases/tag/v0.8.3)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ciguard"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.1.0"
      }, {
        "fixed" : "0.8.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.8.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Jo-Jo98/ciguard/security/advisories/GHSA-7ww3-xvf5-cxwm"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Jo-Jo98/ciguard"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Jo-Jo98/ciguard/releases/tag/v0.8.2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Jo-Jo98/ciguard/releases/tag/v0.8.3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-693" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-05T22:20:04Z",
    "nvd_published_at" : null
  }
}