OSS Library Risk
The OSS library-risk browser scores open source library health and enterprise
exposure side by side. It is seeded with FINOS OSERA backpatch-* repositories
as the initial library universe, with the backpatch- prefix removed and the
records scored against the upstream project where that upstream can be
identified.
Hosted Browser
The browser is shipped as static website content:
/oss-risk/browser.html
On GitHub Pages the full path is:
https://finos-osera.github.io/risk-navigator/oss-risk/browser.html
On Netlify or an OSERA custom domain, the same static asset is served from
/oss-risk/browser.html. No additional hosting service or backend is required.
Individual records can be shared in two URL modes. Use
?selected=<ecosystem>:<package> to open the browser grid with the row
preselected, or ?p=<ecosystem>:<package> to open the same record as a
project-focused full-detail page. For example,
/oss-risk/browser.html?selected=maven:org.thymeleaf:thymeleaf opens the
browser with Thymeleaf selected, while
/oss-risk/browser.html?p=maven:org.thymeleaf:thymeleaf opens Thymeleaf without
the aggregate grid.
What It Shows
- OpenSSF Scorecard details, including a direct Scorecard viewer link and the lowest scoring checks.
- A unified Vulnerability Intelligence card combining OSV package-wide
vulnerability summaries, CISA Known Exploited Vulnerabilities (KEV) enrichment
derived from OSV CVE aliases, and version-specific published OSERA patch
statements from the authoritative OSERA OpenVEX feed
(
https://feed.finos.org/openvex.json). - Repository, package registry, and CHAOSS-derived project-health evidence.
- FINOS OSERA backpatch fork provenance and upstream repository links, explicitly distinguishing fork repository existence from published OpenVEX patch availability.
- Enterprise exposure overlaid from selected Risk Navigator datasets.
The enterprise overlay is not random fixture data. The browser reads the same
Risk Navigator collection manifest as the main tool and joins records by package
coordinate. Maven coordinates are matched as groupId:artifactId; other
ecosystems are matched by their package name where supported by the dataset.
Data Flow
Vitality Dimensions
The OSS vitality score is a weighted blend of five terms:
| Dimension | Weight | Meaning | Primary sources |
|---|---|---|---|
| Project vitality | 25% | Recent upstream motion: commits, releases/tags, recent pushes, issue activity, and contributor activity. | GitHub API |
| Security health | 25% | Security process and vulnerability posture: OpenSSF Scorecard security checks, OSV vulnerability records, and CISA KEV matches. | OpenSSF Scorecard, OSV, CISA KEV |
| Sustainability and governance | 20% | Maintainership and governance signals: contributor depth, review flow, licensing, security policy presence, CII best-practices signal, and issue/PR response indicators. | OpenSSF Scorecard, GitHub-derived CHAOSS-style metrics |
| Dependency hygiene | 15% | Package maintenance and dependency-management health: latest/default version, release age, deprecated versions, dependency update tooling, pinned dependencies, and vulnerability checks. | deps.dev, npm, OpenSSF Scorecard |
| Ecosystem resilience | 15% | Ecosystem importance and support capacity proxy: dependent counts, download signal where available, stars/forks, contributor base, and recent activity. | deps.dev, npm downloads, GitHub API |
Enterprise priority starts from the health gap and then factors in ecosystem criticality, selected Risk Navigator enterprise exposure, deployed-version risk, and source confidence.
Undermaintenance pressure is a derived watch signal. It compares downstream demand, such as registry dependents, download signal where available, and internal application usage, against visible maintainer capacity from active maintainers and recent contributors. Higher values mean many consumers appear to depend on a project relative to the observed maintainer/contributor base. The browser shows the value in Scoring Notes; it is not a table column. The default grid sort is OSS vitality ascending, so weaker upstream health appears first.
Source Semantics
Each source card includes a source name, confidence, links, and source-specific evidence. Neutral cards mean a source was not applicable to that package coordinate, not that the collector failed.
OSV needs a concrete package ecosystem. For ordinary package managers that means
ecosystems such as Maven, npm, PyPI, Go, NuGet, RubyGems, or
crates.io. For system libraries, OSV needs a distro-specific ecosystem. For
example, OpenSSL can be queried as Debian/openssl, Ubuntu/openssl,
AlmaLinux/openssl, or Rocky Linux/openssl; generic system/openssl or
rpm/openssl is intentionally rendered as not applicable.
OSV, CISA KEV, and the OSERA OpenVEX feed (https://feed.finos.org/openvex.json)
are presented together in a single Vulnerability Intelligence card with OSV,
CISA KEV, and OSERA OpenVEX tabs. CISA KEV matching uses CVE aliases returned
by OSV: when KEV matches exist, the card highlights with an alert border and
opens the CISA KEV tab by default; when OSV is not applicable or returns no
CVE aliases, KEV shows a disabled or no-match state without consuming a separate
source-card slot. The OSERA OpenVEX tab displays version-specific published
OSERA patch statements (status: "fixed"), deduplicating repeated historical
statements by (purl, vuln_id, status, supplier) and recording feed provenance
(feed_version, feed_last_updated, and retrieval timestamp). Presence of a
finos-osera/backpatch-* repository is kept distinct from whether a published
OSERA fix exists in the OpenVEX feed, and absence from the OpenVEX feed does not
mean zero vulnerabilities. A KEV match is a known-exploitation signal;
deployed-version impact still depends on the actual versions in the enterprise
inventory.
Updating The Data
To run a full, fail-closed live refresh and validation locally (discovering finos-osera/backpatch-* seeds, bypassing the collector HTTP cache via --refresh, validating source provenance and distribution size limits in data/local/oss-risk-refresh/publish, and atomically updating oss-risk/data/*.json only when validation passes):
npm run refresh:oss-risk
To validate the committed oss-risk/data/*.json datasets without performing live network collection:
npm run validate:oss-risk
For individual collector runs during development, the focused OSERA dataset is generated with:
npm run collect:oss-risk:finos-osera
The smaller example dataset is generated with:
npm run collect:oss-risk
Automated GitHub Actions Refresh & Publishing
- Workflow & Schedule:
.github/workflows/refresh-oss-risk.yml(Refresh OSS-risk datasets) runs weekly on schedule (43 5 * * 1) and on demand viaworkflow_dispatch. - Credentials & Rate-Limit / Subrequest Handling: The workflow supplies
GH_TOKEN/GITHUB_TOKENfrom${{ github.token }}.refresh_oss_risk.pyrequires an authenticated GitHub token (orgh auth tokenlocally) and fails closed if GitHub API rate-limit/authentication errors occur on repository metadata (repo_api) or any scoring subrequest/page (release_api,tag_api,commit_api,issue_api,pull_api), or if repository lookups drop below the required success threshold. When running with a repository-scopedGITHUB_TOKENthat cannot list privatefinos-osera/backpatch-*repositories via/orgs/finos-osera/repos,refresh_oss_risk.pyretains the committedfinos-osera-backpatch-libraries.jsonseed inventory (preserving its original discoverygenerated_atandobserved_attimestamps) and refreshes all live upstream scorecard evidence (--require-live-discoverycan be passed to require org-level seed discovery). - Cache Bypass & Provenance Retention: Automated refreshes always execute with cache bypass enabled (
HttpClient(..., refresh=True)), ensuring fresh upstream responses while writing.meta.jsoncache sidecars and recordinggenerated_at, per-sourceobserved_at/retrieved_attimestamps, and OSERA OpenVEXfeed_version/feed_last_updatedmetadata. - Fail-Closed Staging & Transactional Publication: Refreshed datasets (
finos-osera-backpatch-libraries.json,finos-osera-backpatch-scorecards.json, andcollected-library-scorecards.json) are written todata/local/oss-risk-refresh/publish/first and checked against minimum record counts, baseline shrink guards, schema/provenance requirements, OpenVEX/OSV/CISA KEV/GitHub subrequest availability, and the 5 MiB per-file distribution cap across all three files (including seeds). Publication intooss-risk/data/uses sibling.tmpstaging withfsyncand.bakrollback (publish_dataset_set), so any validation failure or mid-publication write error restores the entire previous dataset set without leaving truncated or mixed old/new files. - Reviewable Refresh PR, Starting PR Checks, & Site Deployment: When
npm run refresh:oss-risk,npm run validate:oss-risk,npm run test:patches,python -m pytest -q, andnpm run docs:buildsucceed, the workflow uploads theoss-risk-datasetsbuild artifact and opens or updates a reviewable pull request fromcodex/automated-oss-risk-refreshtargeting the repository's default branch (without auto-merging). Both.github/workflows/pr-checks.ymland.github/workflows/pages.ymlincludeoss-risk/**in their path filters:- How checks on the generated data PR are started: Per GitHub's workflow-trigger documentation,
pull_requestevents (opened,synchronize,reopened) created using the defaultGITHUB_TOKENdo not automatically trigger downstreampull_requestruns (or require maintainer approval) to prevent recursive workflow loops. When reviewing a refresh PR created with defaultGITHUB_TOKEN, maintainers can startPR checksby approving the pending workflow run in the Actions tab, closing and reopening the PR under their maintainer account to emit a user-attributedreopenedevent, or dispatchingPR checksoncodex/automated-oss-risk-refresh(gh workflow run pr-checks.yml --ref codex/automated-oss-risk-refresh). If automaticpull_requestcheck execution is desired without a manual step, configure a repository secret namedOSS_RISK_REFRESH_TOKEN(a fine-grained PAT or GitHub App token withcontents: writeandpull-requests: write), which the PR-creation step uses automatically (${{ secrets.OSS_RISK_REFRESH_TOKEN || github.token }}). - Once a maintainer merges the refresh PR into
main, the push is attributed to the merging maintainer and automatically triggers.github/workflows/pages.ymlto deploy the updated site to GitHub Pages.
- How checks on the generated data PR are started: Per GitHub's workflow-trigger documentation,
- Rerunning a Failed Refresh: Maintainers can inspect the failed step in the Refresh OSS-risk datasets workflow logs and trigger a manual rerun from the GitHub Actions UI (Run workflow on
Refresh OSS-risk datasets) or viagh workflow run refresh-oss-risk.ymlonce upstream API availability or rate limits recover.
The Docusaurus website build copies the browser and JSON datasets into
website/static/oss-risk/ during npm run docs:build, so the hosted page is
kept in sync without changing netlify.toml.