AUDITSCAN · PUBLIC SOURCE REVIEWEngineering Evidence Certificate
LIVE · LATEST COMPLETED SCAN (main)

pallets/flask

AUDITSCAN SCORE · HEURISTIC INDEX · SCOPE FULL
Grade A · No confirmed defect; scope disclosed
105 of 132 files assessed
Analysed languages: python 24 files: semantic (RES, WEB-CMDI, WEB-SQLI)
Assessed 21 of 21 controls on 105 of 132 files. Skipped 27 file(s) (ignored_directory: 1, unparsed_asset: 26).

REVIEW REQUIRED

0 confirmed vulnerabilities · 1 static observation flagged for maintainer review across 105 analyzed files.

0
Confirmed
1
Review Candidates
79.5%
105 / 132 Files
0 / 1
Derivation-Traced

17 test-only observations were excluded from the security verdict (e.g. tests/test_templating.py:58, examples/javascript/js_example/views.py:15, examples/tutorial/flaskr/auth.py:47); they remain in the full report.

52 additional static observations are outside the public security projection (sensitive evidence, duplicate title, missing location, or no replayable derivation); the full report still lists them.47 proved rewrites are listed in the full report as quality observations, not security findings.
Heuristic score methodology, deduction breakdown & limitations (Base 100 → 90)
Starting Base100.0 pts
Confirmed High/Critical (−15 each, cap 45)−0.0 pts
Confirmed Medium/Low (−7 each, cap 25)−0.0 pts
Review Candidates (size-normalized, cap 18)−3.5 pts
File Scope Adjustment (79.5%)−3.1 pts
Control Posture Adjustment (11/21 pass)−3.8 pts
Blocked / Not-Assessed Controls (0)−0.0 pts
Inconclusive Scope (dead-code capture)−0.0 pts
Unparsed Language Scope−0.0 pts
Subtotal (deductions applied)89.6 pts
Final score (rounded; ceiling applied if lower)90 pts

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.

Static Verification & Reachability Architecture

01 · DEPENDENCY REACHABILITY (VEX)

6 Dependencies Inventoried

0 matched dependency advisories had observed usage across resolved manifests. 21 license rows include dev/test declarations that do not ship.

02 · DERIVATION TRACEABILITY

0 / 1 Derivation-Traced

0 of 1 listed rows show the step-by-step path behind the finding. 0 confirmed and 1 review candidates are listed.

03 · RESOURCE & CALL-GRAPH HYGIENE

No unclosed handles, no unreferenced code

The scan traced opened files, sockets and connections to their close, followed error paths, and listed unreferenced functions across 105 files (998 cross-file call edges linked).

04 · SOURCE-LEVEL CONTROL INDICATORS

11 Clear · 9 Review · 1 Finding

Checked 21 code-verifiable controls across SOC 2, ISO 27001, PCI DSS, HIPAA, GDPR, ASVS, CRA and NIS 2, plus a license check.

Compliance mapping

Controls: 11 passing · 9 in review · 1 gaps

All 21 controls

Scope: source and manifests.

Control & RequirementStatusObserved Evidence & Next Step
C-INPUT Validate & parameterize input
Frameworks: SOC2, ISO27001, PCI, HIPAA, ASVS
Untrusted input must be validated and queries parameterized (no injection).
GAP
direct 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 step
Why: 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-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.
REVIEW
indicative evidence
Observed:
Why and next step
Why: Unpinned ranges are a supply-chain hygiene signal. Annex I does not require every dependency to be pinned to a fixed version.
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.
REVIEW
indicative evidence
Observed: pyproject.toml:24 · pyproject.toml:25 · pyproject.toml:26
Why and next step
Why: An affected dependency is a gap; an in-triage or unclassified statement means applicability is unresolved (review). An inventoried dependency set with no advisory statement is a review item, not a…
C-CRYPTO Use strong cryptography
Frameworks: SOC2, ISO27001, PCI, HIPAA, GDPR, ASVS
Sensitive data must use strong, approved algorithms (no MD5/SHA-1/DES, use CSPRNG).
REVIEW
indicative evidence
Observed: src/flask/sessions.py:281
Why and next step
Why: Direct code pattern for a weak algorithm. MD5 inside an HMAC construction is the protocol's own choice (CRAM-MD5 / DIGEST-MD5) and stays a review item, not a defect. Constant-time comparison is…
C-EXEC Restrict unsafe execution
Frameworks: SOC2, PCI, HIPAA, ASVS
Avoid eval/exec/subprocess from untrusted input.
REVIEW
indicative evidence
Observed: src/flask/cli.py:1022
Why and next step
Why: 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-LIC-COPYLEFT No strong-copyleft licenses (deal gate)
Frameworks: LICENSE
GPL/AGPL-family code triggers enterprise procurement rejection.
REVIEW
indicative evidence
Observed: pyproject.toml:24 · pyproject.toml:25
Why and next step
Why: A denied (strong-copyleft) license is a gap; an UNKNOWN license cannot establish copyleft and stays review.
C-LIC-INV License inventory is complete
Frameworks: LICENSE
Every dependency needs a resolved license for the questionnaire.
REVIEW
indicative evidence
Observed: pyproject.toml:24 · pyproject.toml:25
Why and next step
Why: An unresolved (UNKNOWN) license makes the inventory incomplete (review); a denied license is still a resolved license.
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.
REVIEW
indicative evidence
Observed: src/flask/sessions.py:281
Why and next step
Why: Weak algorithm use is direct code evidence. MD5 inside an HMAC construction is the protocol's choice and stays a review item. A plaintext URL does not establish that sensitive data uses it; Art…
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.
REVIEW
indicative evidence
Observed:
Why and next step
Why: Unpinned ranges are a supply-chain hygiene signal. NIS2 Article 21(2)(d) does not require every dependency to be pinned to a fixed version.
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.
REVIEW
indicative evidence
Observed: pyproject.toml:24 · pyproject.toml:25 · pyproject.toml:26
Why and next step
Why: An affected dependency is a gap; an in-triage or unclassified statement means applicability is unresolved (review). An inventoried dependency set with no advisory statement is a review item, not a…
C-CFG-SECRETS No secrets in config files
Frameworks: SOC2, ISO27001, PCI, HIPAA, GDPR
Committed .env / config must not contain real credentials.
NO VIOLATION
indicative evidence
Observed: Pattern-scanned 24 non-test source files for committed config secrets (.env, docker/k8s/helm); 0 matches.
C-CONFIG Harden configuration defaults
Frameworks: SOC2, ISO27001, PCI, HIPAA, ASVS
No debug mode, wildcard CORS, or insecure defaults in config.
NO VIOLATION
indicative evidence
Observed: Pattern-scanned 24 non-test source files for insecure config defaults (debug mode, wildcard CORS); 0 matches.
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 (pyproject.toml:24, pyproject.toml:25).
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 24 non-test source files for hardcoded credentials; 0 matches.
C-CRA-SECURE Secure defaults: TLS, config, logging
Frameworks: CRA
Encrypt data in transit, harden defaults, never log secrets.
NO VIOLATION
indicative evidence
Observed: Pattern-scanned 24 non-test source files for insecure defaults (TLS / config / logging); 0 matches.
C-ENCRYPT-TRANSIT Encrypt data in transit
Frameworks: 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.
NO VIOLATION
indicative evidence
Observed: Pattern-scanned 24 non-test source files for plaintext HTTP and disabled TLS verification; 0 matches.
C-LIC-PROJECT Project license is declared
Frameworks: LICENSE
Questionnaires ask what license the product itself ships under.
EVIDENCE OBSERVED
direct evidence
Observed: Declarations inventoried (pyproject.toml).
C-LOGGING Avoid logging sensitive data
Frameworks: SOC2, ISO27001, HIPAA, GDPR
Do not log credentials/PII in plaintext.
NO VIOLATION
indicative evidence
Observed: Pattern-scanned 24 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 24 non-test source files for credential-hygiene gaps (hardcoded secrets); 0 matches.
C-RESOURCES Manage resources safely
Frameworks: SOC2, ISO27001, ASVS
Open files/connections must be released and open errors handled before use.
NO VIOLATION
indicative evidence
Observed: Pattern-scanned 24 non-test source files for unclosed resources (file/connection leaks); 0 matches.
C-SECRETS No secrets in source code
Frameworks: SOC2, ISO27001, PCI, HIPAA, GDPR, ASVS
API keys, passwords, tokens must not be hardcoded in source.
NO VIOLATION
indicative evidence
Observed: Pattern-scanned 24 non-test source files for hardcoded secrets (API keys, passwords, tokens); 0 matches.

Observations for review (1)

MEDIUMREVIEWConcurrencyCONCsource-linked observation
src/flask/testing.py:100 ↗

Shared global mutated from 2 entry paths: _get_werkzeug_version

src.flask.testing::_get_werkzeug_version mutates a module global and is reachable from 2 independent entry points -> unsynchronized shared state risk.

Source at src/flask/testing.py:100
98
99
100def _get_werkzeug_version() -> str:
101 global _werkzeug_version
102
Version history (4 meaningful snapshots)
VersionRevisionScanned (UTC)CoverageChangeSnapshot
v1
49943b5a944121 Nov 2026, 13:19 UTCcompletebaselineView snapshot
v2RULES CHANGED
49943b5a944122 Nov 2026, 18:02 UTCcomplete+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
49943b5a944123 Nov 2026, 09:45 UTCcomplete-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
49943b5a944128 Nov 2026, 02:55 UTCcomplete+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.

Scan history

First scan21 Nov 2026, 13:19 UTC
Most recent scan28 Nov 2026, 02:55 UTC
Completed scans15
Cryptographic Verification & Reproducibility Manifest (SHA-256)
Engine & Ruleset0.1.0 · 2f95cbae28b4d982
Coverage Scope105 / 132 files (27 skipped · 0 excluded)
Source Scan Executed28 Nov 2026, 02:55 UTC
Advisory Feed CheckedChecked during the scan
Certificate Generated03 Dec 2026, 12:09 UTC
Pinned Commit SHA49943b5a94413a530761350f04e896f76e8d620e
Snapshot Manifest SHA-256bd4f73809c764559f1c9408e48784cbe1cf4a7ab01a6313a508bb2bc46e364f1
Public Projection Digest SHA-2560516eeb1f481a01f11200937dde038339838b0b83c52b0de2a3f8792fca9430a

Was this report useful? Send feedback

Tell us what would make this clearer. Add an email so we can reply, or write to research [at] auditscan.sh.