Skip to content

Commit

Permalink
docs: Add Security comment (SSRF)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 21, 2024
1 parent 4dea1a6 commit a11c112
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions process/processors/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def compile_releases_by_ocdskit(collection, ocid, releases, extensions):
def _get_merger(extensions):
tag = settings.COMPILER_OCDS_VERSION
url = f"file://{settings.BASE_DIR / f'{tag}.zip'}"
# Security: Potential SSRF via extension URLs (within OCDS publication).
builder = ProfileBuilder(tag, extensions, standard_base_url=url)
patched_schema = builder.patched_release_schema()
return ocdsmerge.Merger(patched_schema)

0 comments on commit a11c112

Please sign in to comment.