---
id: "CVE-2023-1712"
kind: "vulnerability"
aliases: ["CVE-2023-1712", "GHSA-w7qg-j435-78qw"]
title: "Use of hard-coded, security-relevant constants in deepset-ai/haystack"
severity: "critical"
cvss: 9.8
epss: 0.0085
exploited: false
status: "open"
category: "package"
products: [{"name": "farm-haystack", "fixed": [], "affected": "<= 1.15.0", "ecosystem": "pypi"}, {"name": "deepset haystack", "fixed": ["2023-03-29"], "affected": "< 2023-03-29", "ecosystem": "vendor"}]
ecosystems: ["pypi", "vendor"]
tags: ["cwe-547", "farm-haystack", "package", "python", "self-hosted"]
not_affected_if: ["newer-version"]
published_at: "2023-03-30T10:15:07+00:00"
first_seen_at: "2026-10-27T16:46:06+00:00"
updated_at: "2026-10-27T17:03:04+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-w7qg-j435-78qw", "first_seen_at": "2026-10-27T16:46:06+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-1712", "first_seen_at": "2026-10-27T17:03:04+00:00"}]
---

# Use of hard-coded, security-relevant constants in deepset-ai/haystack

The farm-haystack Python package (deepset Haystack) ships security-relevant values hard-coded in the source, which the advisory classes as CWE-547. The sources do not say exactly what the constant controls, but the CVSS score of 9.8 means an unauthenticated remote attacker can likely compromise the affected service.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:farm-haystack affected <= 1.15.0 fixed ?
- vendor:deepset haystack affected < 2023-03-29 fixed 2023-03-29

## How to check

- Run `pip show farm-haystack` and confirm the installed version is `1.15.0` or earlier.
- Check requirements files and lockfiles for `farm-haystack` pinned at `<=1.15.0`.

## Fix

- Upgrade `farm-haystack` to the release that includes commit `5fc84904f198de661d5b933fde756aa922bf09f1`; the fixed version number is unknown from the sources.

## Timeline

- 2026-10-27T16:46:06+00:00 ghsa https://github.com/advisories/GHSA-w7qg-j435-78qw
- 2026-10-27T17:03:04+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2023-1712

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
