# GHSA-w228-rfpx-fhm4: cg vulnerable to an Open Redirect Vulnerability on Referer Header

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-04-23T16:21:22.000Z
- Modified: 2024-12-06T05:43:58.698Z
- Weaknesses: CWE-601

## Description

### Summary

A vulnerability has been discovered in the handling of the referrer header in the application, which could allow an attacker to conduct open redirects. The issue arises from improper validation of the referrer header in certain conditions. By manipulating the referrer header, an attacker could potentially redirect users to malicious websites, phishing pages, or other dangerous destinations.

### PoC

If you change the referer header, you will be redirected to that domain without verifying.

https://github.com/Clinical-Genomics/cg/blob/master/cg/server/invoices/views.py#L173

### Impact

An attacker exploiting this vulnerability could trick users into visiting malicious websites or disclose sensitive information by redirecting them to unintended destinations. This could lead to various attacks including phishing, malware distribution, or further exploitation of other vulnerabilities.

(As written by GitHub Advisory Database.)

## Affected

- cg (PyPI): before 60.2.12

## References

- <https://github.com/Clinical-Genomics/cg/security/advisories/GHSA-w228-rfpx-fhm4> (web)
- <https://github.com/Clinical-Genomics/cg/commit/96e6a968a5a3639cc40ad251ad65952e4f38dd25> (web)
- <https://github.com/Clinical-Genomics/cg> (package)
- <https://github.com/Clinical-Genomics/cg/blob/master/cg/server/invoices/views.py#L173> (web)

## Sources

- GitHub Advisory Database: [GHSA-w228-rfpx-fhm4](https://github.com/advisories/GHSA-w228-rfpx-fhm4), CC-BY-4.0, modified 2024-12-06

---

Page: https://cve.day/GHSA-w228-rfpx-fhm4 · Whole record: https://cve.day/GHSA-w228-rfpx-fhm4.json · Rebuilt by cve.day 2026-11-25T22:56:36.748Z
