Unreleased resource: io_open in Flask.open_resource
io_open acquisition at src/flask/app.py:441 has no release in this function.
- 1acquire
Flask.open_resource:441 - 2missing release
Flask.open_resource:441
49943b5a94
·Branch main
·
Scanned 21 Nov 2026, 13:19 UTC
·License BSD-3-Clause
·Download PDF (matching this scan) ↓·Download attestation bundle ↗
No measured semantic coverage for these languages; patterns were matched but the engine cannot claim a clean scope.
16 test-only observations were excluded from the security verdict (e.g. examples/javascript/js_example/views.py:15, examples/tutorial/flaskr/auth.py:47, examples/tutorial/flaskr/auth.py:85); they remain in the full report.
Rationale & limitations: Confirmed defects weigh more than review candidates, and large repositories are not penalised twice. This is a static summary of the scanned commit, not a breach probability or a runtime test.
0 matched dependency advisories had observed usage across resolved manifests.
3 of 4 listed rows show the step-by-step path behind the finding. 0 confirmed and 4 review candidates are listed.
This build has no measured resource-lifecycle rules for the scanned languages, so unclosed handles are not scored.
Checked 21 code-verifiable controls across SOC 2, ISO 27001, PCI DSS, HIPAA, GDPR, ASVS, CRA and NIS 2, plus a license check.
Controls: 9 passing · 7 in review · 3 gaps · 2 not assessed
Scope: source and manifests.
| Control & Requirement | Status | Observed Evidence & Next Step |
|---|---|---|
C-CRA-SECURE Secure defaults: TLS, config, loggingFrameworks: CRA Encrypt data in transit, harden defaults, never log secrets. | GAP direct evidence | Observed: src/flask/app.py:672 · src/flask/config.py:65 · src/flask/config.py:331 Why and next stepWhy: Disabled verification, debug defaults, wildcard CORS, and logged secrets are direct code signals. A plaintext URL alone is indicative. |
C-CRYPTO Use strong cryptographyFrameworks: SOC2, ISO27001, PCI, HIPAA, GDPR, ASVS Sensitive data must use strong, approved algorithms (no MD5/SHA-1/DES, use CSPRNG). | GAP direct evidence | Observed: src/flask/sessions.py:281 Why and next stepWhy: Direct code pattern for a weak algorithm. Constant-time comparison is tracked under access control, not here. |
C-NIS2-CRYPTO Cryptography policy signals (Art. 21(2)(h) context)Frameworks: NIS2 Article 21(2)(h) covers policies and procedures for cryptography. Weak algorithm use is direct code evidence; a plaintext URL is indicative. | GAP direct evidence | Observed: src/flask/sessions.py:281 · src/flask/config.py:331 · src/flask/config.py:339 Why and next stepWhy: Weak algorithm use is direct code evidence. A plaintext URL does not establish that sensitive data uses it; Art. 21(2)(h) is a policy requirement. |
C-CONFIG Harden configuration defaultsFrameworks: SOC2, ISO27001, PCI, HIPAA, ASVS No debug mode, wildcard CORS, or insecure defaults in config. | REVIEW indicative evidence | Observed: src/flask/app.py:672 (a debug flag; impact depends on production exposure) · src/flask/config.py:65 (a debug flag; impact depends on production exposure) Why and next stepWhy: Each marker (CORS wildcard, debug flag, mktemp) carries its own note; impact depends on production context and is not a demonstrated exploit. |
C-ENCRYPT-TRANSIT Encrypt data in transitFrameworks: SOC2, ISO27001, PCI, HIPAA, GDPR, ASVS Services must use TLS for sensitive data; a plaintext URL is a transport signal, not proof of what is transmitted. | REVIEW indicative evidence | Observed: src/flask/config.py:331 · src/flask/config.py:339 Why and next stepWhy: Disabled TLS verification is direct code evidence. A plaintext URL shows a transport choice, not that sensitive data uses it. |
C-EXEC Restrict unsafe executionFrameworks: SOC2, PCI, HIPAA, ASVS Avoid eval/exec/subprocess from untrusted input. | REVIEW indicative evidence | Observed: src/flask/cli.py:1022 Why and next stepWhy: An eval/exec pattern or a command-injection finding is a candidate, not proof that untrusted input reaches the sink; dataflow is not established. |
C-INPUT Validate & parameterize inputFrameworks: SOC2, ISO27001, PCI, HIPAA, ASVS Untrusted input must be validated and queries parameterized (no injection). | REVIEW indicative evidence | Observed: src/flask/config.py:187 (Data flow: Config.from_envvar → Config.from_pyfile) · src/flask/cli.py:1000 (Data flow: shell_command) Why and next stepWhy: A RISKY injection finding is a confirmed gap; an UNKNOWN taint/injection candidate keeps the control in review because the flow is not established. |
C-LIC-COPYLEFT No strong-copyleft licenses (deal gate)Frameworks: LICENSE GPL/AGPL-family code triggers enterprise procurement rejection. | REVIEW indicative evidence | Observed: Why and next stepWhy: A denied (strong-copyleft) license is a gap; an UNKNOWN license cannot establish copyleft and stays review. |
C-LIC-INV License inventory is completeFrameworks: LICENSE Every dependency needs a resolved license for the questionnaire. | REVIEW indicative evidence | Observed: Why and next stepWhy: An unresolved (UNKNOWN) license makes the inventory incomplete (review); a denied license is still a resolved license. |
C-RESOURCES Manage resources safelyFrameworks: SOC2, ISO27001, ASVS Open files/connections must be released and open errors handled before use. | REVIEW indicative evidence | Observed: src/flask/app.py:441 (Unreleased resource: io_open in Flask.open_resource) · src/flask/app.py:443 (Unreleased resource: io_open in Flask.open_resource) · src/flask/app.py:463 (Unreleased resource: io_open in Flask.open_instance_resource) Why and next stepWhy: An acquisition with no local release detected is a review candidate because cleanup may occur in a caller or on process exit; an io_open candidate alone is not proof of runtime descriptor exhaustion. |
C-CFG-SECRETS No secrets in config filesFrameworks: SOC2, ISO27001, PCI, HIPAA, GDPR Committed .env / config must not contain real credentials. | NO VIOLATION indicative evidence | Observed: Pattern-scanned 23 non-test source files for committed config secrets (.env, docker/k8s/helm); 0 matches. |
C-CRA-PIN Component baseline hygiene (CRA Annex I context)Frameworks: CRA CRA Annex I requires vulnerability and component identification, including an SBOM. Pinning is a supporting hygiene signal, not a statutory pinning mandate. | EVIDENCE OBSERVED indicative evidence | Observed: Declarations inventoried from the repository manifests. |
C-CRA-SBOM Maintain a software bill of materials (CRA Art. 13)Frameworks: CRA Every third-party dependency must be inventoried with version + manifest location. | EVIDENCE OBSERVED indicative evidence | Observed: Declarations inventoried from the repository manifests. |
C-CRA-SECRETS No hardcoded credentials (CRA secure-by-design)Frameworks: CRA CRA Annex I requires products to ship without known exploitable weaknesses. | NO VIOLATION indicative evidence | Observed: Pattern-scanned 23 non-test source files for hardcoded credentials; 0 matches. |
C-LIC-PROJECT Project license is declaredFrameworks: LICENSE Questionnaires ask what license the product itself ships under. | EVIDENCE OBSERVED direct evidence | Observed: Declarations inventoried (pyproject.toml). |
C-LOGGING Avoid logging sensitive dataFrameworks: SOC2, ISO27001, HIPAA, GDPR Do not log credentials/PII in plaintext. | NO VIOLATION indicative evidence | Observed: Pattern-scanned 23 non-test source files for sensitive-data logging (credentials / PII); 0 matches. |
C-NIS2-ACCESS Credential hygiene signals (Art. 21(2)(i) context)Frameworks: NIS2 Article 21(2)(i) covers access-control policies and asset management. Hardcoded credentials are direct code evidence of a hygiene gap; a non-constant-time comparison is only a… | NO VIOLATION indicative evidence | Observed: Pattern-scanned 23 non-test source files for credential-hygiene gaps (hardcoded secrets); 0 matches. |
C-NIS2-SUPPLY Supplier baseline hygiene (Art. 21(2)(d) context)Frameworks: NIS2 Article 21(2)(d) covers supply-chain security. Unpinned ranges are a hygiene signal, not a statutory pinning mandate. | EVIDENCE OBSERVED indicative evidence | Observed: Declarations inventoried from the repository manifests. |
C-SECRETS No secrets in source codeFrameworks: SOC2, ISO27001, PCI, HIPAA, GDPR, ASVS API keys, passwords, tokens must not be hardcoded in source. | NO VIOLATION indicative evidence | Observed: Pattern-scanned 23 non-test source files for hardcoded secrets (API keys, passwords, tokens); 0 matches. |
C-CRA-VULN Triage known vulnerabilities with VEX (CRA Arts. 13-14)Frameworks: CRA Triage known CVEs in dependencies with observed code usage; unused dependencies are classified from static usage analysis. | NOT ASSESSED indicative evidence | Observed: No dependency advisory inventory was available for this scan. Why and next stepWhy: An affected dependency is a gap; an in-triage or unclassified statement means applicability is unresolved (review). No advisory inventory is not-assessed. |
C-NIS2-VULN Vulnerability handling with VEX triage (Art. 21(2)(e))Frameworks: NIS2 Triage known CVEs in dependencies with observed code usage; unused dependencies are classified from static usage analysis. | NOT ASSESSED indicative evidence | Observed: No dependency advisory inventory was available for this scan. Why and next stepWhy: An affected dependency is a gap; an in-triage or unclassified statement means applicability is unresolved (review). |
io_open acquisition at src/flask/app.py:441 has no release in this function.
Flask.open_resource:441Flask.open_resource:441src.flask.testing::_get_werkzeug_version mutates a module global and is reachable from 2 independent entry points -> unsynchronized shared state risk.
io_open acquisition at src/flask/app.py:463 has no release in this function.
Flask.open_instance_resource:463Flask.open_instance_resource:463io_open acquisition at src/flask/blueprints.py:126 has no release in this function.
Blueprint.open_resource:126Blueprint.open_resource:126| Version | Revision | Scanned (UTC) | Coverage | Change | Snapshot |
|---|---|---|---|---|---|
v1 | 49943b5a9441 | 21 Nov 2026, 13:19 UTC | complete | baseline | View snapshot |
v2RULES CHANGED | 49943b5a9441 | 22 Nov 2026, 18:02 UTC | complete | +14 findings new: Known-vulnerable dependency flask 2.3.2 (CVE-2026-27205) has …, Known-vulnerable dependency jinja2 3.1.2 (CVE-2024-22195) has…, Known-vulnerable dependency jinja2 3.1.2 (CVE-2024-34064) has… · +9 more | View snapshot |
v3RULES CHANGED | 49943b5a9441 | 23 Nov 2026, 09:45 UTC | complete | -382 findings new: Unpinned dependency celery: exact version cannot be verified, Unpinned dependency flask: exact version cannot be verified, Unpinned dependency flask: exact version cannot be verified · gone: High decision complexity in Blueprint.register, High decision complexity in routes_command, High decision complexity in Flask.make_response · +388 more | View snapshot |
v4CURRENTRULES CHANGED | 49943b5a9441 | 28 Nov 2026, 02:55 UTC | complete | +42 findings new: Proved inert statement, Proved inert statement, Proved inert statement · gone: Unreleased resource: io_open in Flask.open_instance_resource, Unreleased resource: io_open in Flask.open_instance_resource, Unreleased resource: io_open in Flask.open_resource · +44 more | View snapshot |
A rescan is listed only when it finds at least one more issue or improves findings by 10% or more; the latest scan always drives this page. A version marked RULES CHANGED was scanned with a different rule set, so its delta is not a code-only regression.
49943b5a94413a530761350f04e896f76e8d620ef08a29b27d6b718159d75fb17e70cea6814b1587cb380753a27147eaa3b945def6d59658df60c6b27b141d53ae96cfde8cce648678e8560eb713fd7e82aba0a9Tell us what would make this clearer. Add an email so we can reply, or write to research [at] auditscan.sh.