Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

foca

Latest version: v0.23.0

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
PyPI package Publisher: uniqueg
18 Stars
16 Forks
10 Versions
15.2K Downloads
Python Repo language

Scan summary

foca was last scanned on 25 Nov 2026 at version 0.23.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 10 versions; the latest was published on 25 Nov 2026.
  • Findings: No rules fired in version 0.23.0.
  • Downloads: 15,222 downloads.

Versions

10 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.23.0 LATEST 25 Nov 2026 No rules fired
0.22.0 9 Nov 2026 No rules fired
0.21.0 5 Nov 2026 No rules fired
0.20.0 3 Nov 2026 Not shown
0.19.0 31 Oct 2026 Not shown

No rules fired in 0.23.0

Findings

Findings for v0.23.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.23.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

FOCA

License Build_status Docs GitHub_tag Docker_image PyPI_release

An archetype for OpenAPI-based web services in Python, brought to you by ELIXIR On-Cloud. FOCA (Flask-OpenAPI-Connexion-Archetype) builds a Connexion app on Flask from your OpenAPI specifications and a single configuration file, so that you only write the controllers and the logic of your app. It provides:

  • OpenAPI 2.x/3.x specifications, validated and routed by Connexion and modified on the fly;
  • a validated, typed configuration, with environment-specific overlays;
  • errors as problem details;
  • bearer token validation for the OpenID Connect providers that you trust;
  • access control with Casbin: policies on all operations, roles of users and groups, resource ownership and a permissions API;
  • MongoDB databases, collections and indexes;
  • background tasks with Celery and RabbitMQ;
  • CORS and a GA4GH service info endpoint;
  • a plugin engine for gateway apps (e.g., proTES): installed, versioned plugins that check, change and route requests to backends, in pipelines set by operators;
  • an HTTP client for untrusted URLs, guarded against server-side request forgery;
  • Docker base images with SBOM and provenance attestations, and a Helm library chart for Kubernetes with a provenance attestation, all signed.

Read the documentation for the configuration, authentication, access control, the deployment with Docker and Helm, the utilities, the API reference and development. Upgrading from an earlier version? See Migrating to 0.23.0 (from 0.21 or earlier, first Migrating to 0.22.0, from 0.20 or earlier also Migrating to 0.21.0, from 0.19 or earlier also Migrating to 0.20.0, from 0.17 or earlier also Migrating to 0.18.0, Migrating to 0.17.0, Migrating to 0.16.0, Migrating to 0.15.0 and Migrating to 0.14.0). The ASGI release removes Flask: see Preparing for the ASGI release.

Why FOCA

FOCA's package has about 9,300 lines of code, tested by about 12,600 lines of tests, and its Helm library chart about 1,750 lines. Cloud Registry, for example, uses almost all of the package (all but the Celery factory and a database helper) and has about 2,200 lines of code of its own, plus about 9,000 lines of tests. Its own code is thus about a fifth of what it would be without FOCA, counting code only, and about a third, counting code and tests. Even if an app needed only half of FOCA's code, FOCA would still save it about 4,500 lines, plus their tests and the chart. (Lines of Python without blank lines and comments, docstrings included; FOCA and Cloud Registry in October 2026.)

The savings add up with every app: if you maintain several OpenAPI-based apps, they all share the same authentication, access control, configuration, errors, images and Helm chart, and security fixes and upgrades are made once, in FOCA, instead of in every app.

Apps built with FOCA

App Description
Cloud Registry A registry of web services, implementing the GA4GH Service Registry API
proTES A gateway for the GA4GH Task Execution Service (TES) API that federates TES instances

See also the dependents of FOCA on GitHub. Built an app with FOCA? Open a pull request that adds it to the table in README.md.

Quick start

Install the FOCA package (Python 3.11 to 3.15) with pip:

pip install foca

Write a configuration file that points to your OpenAPI specification and the module of its controllers, e.g., config.yaml:

api:
  specs:
    my-api:
      path: api/openapi.yaml
      add_operation_fields:
        x-openapi-router-controller: my_app.controllers

Then create and run your app:

from foca import Foca

app = Foca(config_file="config.yaml").create_app()  # Connexion app

if __name__ == "__main__":
    app.run()

See Getting started for a step-by-step guide and the Docker image, and the Petstore example app to see FOCA in action.

Citation

If you use FOCA, please cite it with its DOI 10.5281/zenodo.23603534, which always resolves to the latest version on Zenodo; the Zenodo record lists the DOI of each version, too. The citation metadata is in CITATION.cff: on GitHub, "Cite this repository" in the sidebar of the repository formats it as APA or BibTeX.

Contributing

Contributions are welcome! See Contributing in the documentation and the organisation's contributing guide, and mind our code of conduct.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases foca

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229