---
id: CVE-2023-1712
aliases:
  - GHSA-w7qg-j435-78qw
  - PYSEC-2026-337
title: 'Use of hard-coded, security-relevant constants in deepset-ai/haystack'
summary: 'Use of hard-coded, security-relevant constants in deepset-ai/haystack'
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
vendor: farm-haystack
product: farm-haystack
ecosystem: pip
affected:
  - farm-haystack <= 1.15.0
published: '2023-03-30'
updated: '2026-10-27'
sourceUpdated: '2026-10-27T17:00:05.122724921Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-w7qg-j435-78qw'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2023-1712'
  - url: 'https://github.com/deepset-ai/haystack/pull/4535'
  - url: >-
      https://github.com/deepset-ai/haystack/commit/5fc84904f198de661d5b933fde756aa922bf09f1
  - url: 'https://github.com/deepset-ai/haystack'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/farm-haystack/PYSEC-2026-337.yaml
  - url: 'https://huntr.dev/bounties/9a6b1fb4-ec9b-4cfa-af1e-9ce304924829'
  - url: 'https://pypi.org/project/farm-haystack'
  - url: 'https://github.com/advisories/GHSA-w7qg-j435-78qw'
tags:
  - osv
  - pip
  - ghsa
epss: 0.0085
epssPercentile: 0.57973
cwe:
  - CWE-547
ingestedAt: '2026-10-27T17:33:23.774Z'
---

## Overview

Use of Hard-coded, Security-relevant Constants in GitHub repository deepset-ai/haystack in version 1.15.0 and prior. A patch is available at commit 5fc84904f198de661d5b933fde756aa922bf09f1.

## Affected packages

- `farm-haystack <= 1.15.0`

## Remediation

Refer to the advisory for the patched release.
