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

stac-check

Latest version: v1.15.1

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
PyPI package Publisher: jonhealy1
31 Stars
8 Forks
2 Versions
47.3K Downloads
Python Repo language

Scan summary

stac-check was last scanned on 26 Nov 2026 at version 1.15.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 26 Nov 2026.
  • Findings: No rules fired in version 1.15.1.
  • Downloads: 47,293 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.15.1 LATEST 26 Nov 2026 No rules fired
1.15.0 26 Nov 2026 No rules fired

No rules fired in 1.15.1

Findings

Findings for v1.15.1. 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 1.15.1; other versions have their own rules, not their own score.

README

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

stac-check

GitHub contributors GitHub stars GitHub forks PyPI version STAC

A linting and validation tool for STAC assets

The intent of this project is to provide a validation tool that also follows the official STAC Best Practices document

Latest News

  • 11/26/2026: ⚡ Fast Recursive Validation! --fast now works with --recursive, validating an entire catalog and all of its linked objects with FastJSONSchema in a single pass instead of re-fetching and re-validating every asset during display. In our benchmarks it validated a local catalog of 61 objects ~30× faster than standard recursion (0.08s vs 2.5s validation time, ~19× end-to-end) and a remote catalog end-to-end ~6× faster (2.9s vs 17.6s) — and the gap widens sharply on large or deeply nested remote catalogs, where standard recursion's per-asset re-walks push runtimes into the minutes while --fast finishes in seconds. Custom --headers are applied to remote fetches, --fast-linting additionally runs linting and geometry checks per object, and results are shown in the compact summary with errors grouped across the whole walk. Note that --max-depth is ignored in fast mode. See Recursive Validation and Fast Validation.

Table of Contents

  • Latest News
  • Documentation
  • Installation
    • Pip
    • Docker
  • Usage
    • CLI Usage
    • Configuration
    • Geometry Validation
    • Python API Usage
  • Examples
    • Basic Validation
    • Recursive Validation
    • Asset Validation
    • Link and Asset Validation
    • Invalid STAC
    • Using HTTP Headers
    • Fast Validation
    • STAC API Validation
  • Development
    • Building Documentation
  • Sponsors and Supporters
  • Contributing
    • How to Contribute
    • Development Guidelines
    • Reporting Issues
  • License

Documentation

The documentation is hosted on GitHub Pages at stac-utils.github.io/stac-check.

For development and building the documentation locally, see the Development section below.

Installation

Pip
$ pip install stac-check

For local development, this project uses uv:

$ uv sync --extra dev

Or with pip:

$ pip install -e '.[dev]'
Docker
$ make build
$ make shell

Usage

CLI Usage
Usage: stac-check [OPTIONS] FILE

Options:
  --version                Show the version and exit.
  -l, --links              Validate links for format and response.
  -a, --assets             Validate assets for format and response.
  -m, --max-depth INTEGER  Maximum depth to traverse when recursing. Omit this
                           argument to get full recursion. Ignored if
                           `recursive == False` or in fast mode.
  -r, --recursive          Recursively validate all related stac objects. Can be
                           combined with --fast for FastJSONSchema validation.
  --no-assets-urls         Disables the opening of href links when validating assets
                           (enabled by default).
  --header KEY VALUE       HTTP header to include in the requests. Can be used
                           multiple times.
  --pydantic               Use stac-pydantic for enhanced validation with Pydantic models.
  --verbose                Show verbose error messages.
  -o, --output FILE        Save output to the specified file.
  --fast                   Use FastJSONSchema for high-speed validation. Skips geometry
                           checks and best practices linting for maximum performance.
                           Also applies to --recursive.
  --fast-linting           Use FastJSONSchema for high-speed validation with best
                           practices linting. Skips geometry checks for maximum performance.
  --item-collection        Validate item collection response. Can be combined with
                           --pages. Defaults to one page.
  --collections            Validate collections endpoint response. Can be combined with
                           --pages. Defaults to one page.
  -p, --pages INTEGER      Maximum number of pages to validate via --item-collection
                           or --collections. Defaults to one page.
  --help                   Show this message and exit.
Configuration

stac-check uses a configuration file to control which validation checks are performed. By default, it uses the built-in configuration at stac_check/stac-check.config.yml. You can customize the validation behavior by creating your own configuration file.

The configuration file has three main sections:

  1. linting: Controls which general best practices checks are enabled
  2. geometry_validation: Controls geometry-specific validation checks [BETA]
  3. settings: Configures thresholds for certain checks

Here's an example of the configuration options:

linting:
  # Identifiers should consist of only lowercase characters, numbers, '_', and '-'
  searchable_identifiers: true
  # Item name '{self.object_id}' should not contain ':' or '/'
  percent_encoded: true
  # Item file names should match their ids
  item_id_file_name: true
  # Collections and catalogs should be named collection.json and catalog.json
  catalog_id_file_name: true
  # A STAC collection should contain a summaries field
  check_summaries: true
  # Datetime fields should not be set to null
  null_datetime: true
  # best practices - check unlocated items to make sure bbox field is not set
  check_unlocated: true
  # best practices - recommend items have a geometry
  check_geometry: true
  # check to see if there are too many links
  bloated_links: true
  # best practices - check for bloated metadata in properties
  bloated_metadata: true
  # best practices - ensure thumbnail is a small file size ["png", "jpeg", "jpg", "webp"]
  check_thumbnail: true
  # best practices - ensure that links in catalogs and collections include a title field
  links_title: true
  # best practices - ensure that links in catalogs and collections include self link
  links_self: true

geometry_validation:
  # Master switch to enable/disable all geometry validation checks
  enabled: true
  # check if geometry coordinates are potentially ordered incorrectly (longitude, latitude)
  geometry_coordinates_order: true
  # check if geometry coordinates contain definite errors (latitude > ±90°, longitude > ±180°)
  geometry_coordinates_definite_errors: true
  # check if bbox matches the bounds of the geometry
  bbox_geometry_match: true
  # check if a bbox that crosses the antimeridian is correctly formatted
  bbox_antimeridian: true

settings:
  # number of links before the bloated links warning is shown
  max_links: 20
  # number of properties before the bloated metadata warning is shown
  max_properties: 20

To use a custom configuration file, set the STAC_CHECK_CONFIG environment variable to the path of your configuration file:

export STAC_CHECK_CONFIG=/path/to/your/config.yml
stac-check sample_files/1.0.0/core-item.json
Geometry Validation

Geometry validation is a feature of stac-check that allows you to validate the geometry of your STAC items. This feature is enabled by default, but can be disabled by setting geometry_validation.enabled to false in your configuration file.

The geometry validation feature checks for the following:

  • Geometry coordinates are potentially ordered incorrectly (longitude, latitude)
  • Geometry coordinates contain definite errors (latitude > ±90°, longitude > ±180°)
  • Bbox matches the bounds of the geometry
  • Bbox that crosses the antimeridian is correctly formatted

You can customize the geometry validation behavior by setting the following options in your configuration file:

  • geometry_validation.geometry_coordinates_order: Check if geometry coordinates are potentially ordered incorrectly (longitude, latitude)
  • geometry_validation.geometry_coordinates_definite_errors: Check if geometry coordinates contain definite errors (latitude > ±90°, longitude > ±180°)
  • geometry_validation.bbox_geometry_match: Check if bbox matches the bounds of the geometry
  • geometry_validation.bbox_antimeridian: Check if a bbox that crosses the antimeridian is correctly formatted
Python API Usage
from stac_check.lint import Linter

linter = Linter('<json_path>')

for k, v in linter.create_best_practices_dict().items():
    print(k, ":", v)

Examples

Basic Validation
stac-check sample_files/0.9.0/landsat8-sample.json
Recursive Validation
stac-check https://raw.githubusercontent.com/stac-utils/pystac/main/tests/data-files/examples/0.9.0/collection-spec/examples/landsat-collection.json --recursive

Combine --recursive with --fast to validate the entire catalog walk with FastValidator in a single pass — dramatically faster for large or remote catalogs:

stac-check catalog.json --recursive --fast

In fast recursive mode, --max-depth is ignored (the full catalog is validated) and --headers still apply to remote fetches. Use --fast-linting instead of --fast to also run linting and geometry checks on every object in the walk. Note that FastValidator resolves schemas from schemas.stacspec.org, which does not host pre-1.0 schemas, so documents older than STAC 1.0 may fail schema resolution in fast mode.

Asset Validation
stac-check sample_files/1.0.0/core-item.json --assets
Link and Asset Validation
stac-check sample_files/1.0.0/core-item-bad-links.json --links --assets
Invalid STAC
stac-check sample_files/0.9.0/bad-item.json
Using HTTP Headers
stac-check https://stac-catalog.eu/collections/sentinel-s2-l2a/items/item1 --assets --no-assets-urls --header x-api-key $MY_API_KEY --header foo bar
Fast Validation

For large STAC collections or when you need maximum validation speed, use the --fast or --fast-linting flags to enable FastJSONSchema validation. Both modes skip geometry checks for maximum performance.

Two Fast Validation Modes:

  • --fast: Fastest mode - skips geometry checks and best practices linting, focuses only on STAC spec compliance
  • --fast-linting: Fast mode with linting - skips geometry checks but includes best practices checks for code quality

Fast validation also works with --recursive, validating a catalog and all its linked objects with FastJSONSchema in one pass (see Recursive Validation).

Fast Validation (Spec Only) of a Large Item Collection:

stac-check large_collection.json --fast

Fast Validation with Best Practices Linting:

Use --fast-linting to include best practices checks while maintaining fast performance:

stac-check large_collection.json --fast-linting

This will show both validation errors and best practices warnings in a compact, grouped format.

Performance Comparison:

  • --fast mode: ~0.25ms per item (spec compliance only)
  • --fast-linting mode: ~0.5ms per item (spec + best practices)
  • Regular mode: ~1-2ms per item (includes geometry checks)
  • Speedup: 4-8x faster for large collections with --fast

Use --fast when:

  • Validating large collections (100+ items)
  • Recursively validating large or remote catalogs (--recursive --fast)
  • You only need STAC spec compliance
  • You want maximum validation speed

Use --fast-linting when:

  • Validating large collections with best practices checks
  • You want to ensure code quality without geometry validation
  • You need a balance between speed and thoroughness
  • Performance is critical
STAC API Validation

stac-check can validate STAC API endpoints, including item collections and collections endpoints. It supports pagination and can validate multiple pages of results.

Validating an Item Collection Endpoint:

stac-check https://stac.geobon.org/collections/chelsa-clim/items --item-collection

Validating Multiple Pages of an Item Collection:

stac-check https://stac.geobon.org/collections/chelsa-clim/items --item-collection --pages 3

Validating a Collections Endpoint:

stac-check https://stac.geobon.org/collections --collections

Development

Building Documentation

Documentation is automatically built and published to GitHub Pages on every push to the main branch. You can view the latest version at stac-utils.github.io/stac-check.

To build the documentation locally (for development or testing), you'll need Python >= 3.11 and the documentation dependencies:

# Install the package with documentation dependencies
uv sync --extra docs

# Build the documentation
make docs

# Open the built documentation
xdg-open docs/_build/html/index.html  # On Linux
open docs/_build/html/index.html    # On macOS
start docs/_build/html/index.html   # On Windows

Or using Docker:

# Build the Docker image and documentation
make docker-docs

The documentation is built using Sphinx with the following extensions:

  • sphinx.ext.autodoc for API documentation
  • sphinx_click for CLI documentation
  • sphinx_rtd_theme for the ReadTheDocs theme
  • myst_parser for Markdown support

Sponsors and Supporters

The following organizations have contributed time and/or funding to support the development of this project:

We are grateful for the support of our sponsors who help make this project possible. If your organization uses stac-check and would like to become a sponsor, please reach out to us!

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

How to Contribute
  1. Fork the repository - Create your own fork of the project
  2. Create a feature branch - git checkout -b feature/your-feature-name
  3. Commit your changes - Make sure to write clear, concise commit messages
  4. Push to your branch - git push origin feature/your-feature-name
  5. Open a Pull Request - Describe your changes in detail
Development Guidelines
  • Follow the existing code style
  • Add tests for new features
  • Update documentation as needed
  • Make sure all tests pass before submitting a PR
Reporting Issues

If you find a bug or have a feature request, please open an issue on the GitHub repository.

License

This project is licensed under the Apache License 2.0.

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 stac-check

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

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

PolinRider Returns
Research

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

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229