Skip to contentSkip to conversation

python-gunicorn: set CVE_PRODUCT

PATCH New Gyorgy Sarvari 1 participant 10 messages Dec 30, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/10 python-gunicorn: set CVE_PRODUCT

There is only one relevant CVE associated with this recipe in the CVE db, but it is tracked using gunicorn:gunicorn CPE instead of python:gunicorn (which is the default CPE from pypi.bbclass)

See CVE db query:
sqlite> select * from products where PRODUCT like '%gunicorn%'; CVE-2018-1000164|gunicorn|gunicorn|19.4.5|=||

Set CVE_PRODUCT so that it matches relevant CVEs.

---
 meta-python/recipes-devtools/python/python3-gunicorn_23.0.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-gunicorn_23.0.0.bb +2 -0
index 3c819a934d..a3524d6d8e 100644
@@ -7,6 +7,8 @@ SRC_URI[sha256sum] = "f014447a0101dc57e294f6c18ca6b40227a4c90e9bdb586042628030cb
 
 inherit pypi python_setuptools_build_meta ptest
 
+CVE_PRODUCT = "gunicorn"
+
 SRC_URI += " \
 	file://run-ptest \
 "
#1 lore raw

PATCH 2/10 python3-flask: set CVE_PRODUCT

The default python:flask CPE doesn't match relevant CVE entries which are tracked under palletsprojects:flask CPE.

See CVE db query:
sqlite> select * from products where PRODUCT like 'flask';

CVE-2018-1000656|palletsprojects|flask|||0.12.3|<
CVE-2019-1010083|palletsprojects|flask|||1.0|<
CVE-2023-30861|palletsprojects|flask|||2.2.5|<

CVE-2023-30861|palletsprojects|flask|2.3.0|>=|2.3.2|<

Set the CVE_PRODUCT to "flask" so it matches relevant entries.

---
 meta-python/recipes-devtools/python/python3-flask_3.1.2.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-flask_3.1.2.bb +2 -0
index de4a558bff..1b289c7227 100644
@@ -8,6 +8,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ffeffa59c90c9c4a033c7574f8f3fb75"
 
 SRC_URI[sha256sum] = "bf656c15c80190ed628ad08cdfd3aaa35beb087855e2f494910aa3774cc4fd87"
 
+CVE_PRODUCT = "flask"
+
 inherit pypi python_flit_core ptest-python-pytest
 
 CLEANBROKEN = "1"
#2 lore raw

PATCH 3/10 python3-marshmallow: set CVE_PRODUCT

In reply to Gyorgy Sarvari

The default python:marshmallow CPE doesn't match the CVEs related to this product, as they are tracked with marshmallow_project:marshmallow CPE.

See CVE db query:
sqlite> select * from products where PRODUCT like 'marshmallow';

CVE-2018-17175|marshmallow_project|marshmallow|||2.15.1|<
CVE-2018-17175|marshmallow_project|marshmallow|3.0|>=|3.0.0b9|<

Set the CVE_PRODUCT so it matches related CVEs.

---
 .../recipes-devtools/python/python3-marshmallow_4.1.1.bb        | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-marshmallow_4.1.1.bb +2 -0
index 2919897dc3..01eead0cf8 100644
@@ -8,6 +8,8 @@ LIC_FILES_CHKSUM = "\
 
 SRC_URI[sha256sum] = "550aa14b619072f0a8d8184911b3f1021c5c32587fb27318ddf81ce0d0029c9d"
 
+CVE_PRODUCT = "marshmallow"
+
 inherit python_flit_core pypi ptest-python-pytest
 
 RDEPENDS:${PN}-ptest += " \
#3 lore raw

PATCH 4/10 python3-parso: set CVE_PRODUCT

In reply to Gyorgy Sarvari

There is one related CVE tracked by nist, using the parso_project:parso CPE, which doesn't match the default python:parso CPE.

See CVE db query:
sqlite> select * from products where PRODUCT like 'parso'; CVE-2019-12760|parso_project|parso|||0.4.0|<=

Set the CVE_PRODUCT accordingly.

---
 meta-python/recipes-devtools/python/python3-parso_0.8.5.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-parso_0.8.5.bb +2 -0
index e609a4ad73..2bde8c3f40 100644
@@ -7,6 +7,8 @@ PYPI_PACKAGE = "parso"
 
 SRC_URI[sha256sum] = "034d7354a9a018bdce352f48b2a8a450f05e9d6ee85db84764e9b6bd96dafe5a"
 
+CVE_PRODUCT = "parso"
+
 inherit setuptools3 pypi
 
 RDEPENDS:${PN} = " \
#4 lore raw

PATCH 5/10 python3-nltk: set CVE_PRODUCT

In reply to Gyorgy Sarvari

The CVEs for this project are tracked under nltk:nltk CPE, which doesn't match the default python:nltk CPE.

See CVE db query:
sqlite> select * from products where PRODUCT like 'nltk';

CVE-2019-14751|nltk|nltk|||3.4.5|<
CVE-2021-3828|nltk|nltk|||3.6.3|<=
CVE-2021-3842|nltk|nltk|||3.6.6|<
CVE-2021-43854|nltk|nltk|||3.6.5|<

Set the CVE_PRODUCT so it can be used to match CVEs.

---
 meta-python/recipes-devtools/python3-nltk/python3-nltk_3.9.2.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python3-nltk/python3-nltk_3.9.2.bb +2 -0
index 8a1e0cc047..43c23254d9 100644
@@ -7,6 +7,8 @@ BUGTRACKER = "https://github.com/nltk/nltk/issues"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
+CVE_PRODUCT = "nltk"
+
 RDEPENDS:${PN} = "\
     python3-click \
     python3-joblib \
#5 lore raw

PATCH 6/10 python3-waitress: set CVE_PRODUCT

In reply to Gyorgy Sarvari

The CVEs for this recipes are tracked using the agendaless:waitress CPE, which doesn't match the default python:waitress CPE, making the cve-checker miss relevant CVEs.

See CVE db query:
sqlite> select * from products where PRODUCT like 'waitress';

CVE-2019-16785|agendaless|waitress|||1.3.1|<=
CVE-2019-16786|agendaless|waitress|||1.3.1|<
CVE-2019-16789|agendaless|waitress|||1.4.0|<=
CVE-2019-16792|agendaless|waitress|||1.3.1|<=
CVE-2020-5236|agendaless|waitress|1.4.2|=||
CVE-2022-24761|agendaless|waitress|||2.1.1|<
CVE-2022-31015|agendaless|waitress|2.1.0|>=|2.1.2|<
CVE-2024-49768|agendaless|waitress|2.0.0|>=|3.0.1|<
CVE-2024-49769|agendaless|waitress|||3.0.1|<

Set CVE_PRODUCT accordingly.

---
 meta-python/recipes-devtools/python/python3-waitress_3.0.2.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-waitress_3.0.2.bb +2 -0
index b8e90807cf..c495132c59 100644
@@ -6,6 +6,8 @@ SECTION = "devel/python"
 LICENSE = "ZPL-2.1"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=78ccb3640dc841e1baecb3e27a6966b2"
 
+CVE_PRODUCT = "waitress"
+
 RDEPENDS:${PN} += " \
         python3-logging \
 "
#6 lore raw

PATCH 7/10 python3-reportlab: set CVE_PRODUCT

In reply to Gyorgy Sarvari

The relevant CVEs to this recipe are tracked using reportlab:reportlab CPE, which doesn't match the default python:reportlab CPE, so the cve-checker misses CVEs.

See CVE db query:
sqlite> select * from products where product like '%reportlab%';

CVE-2019-17626|reportlab|reportlab|||3.5.26|<=|0
CVE-2019-19450|reportlab|reportlab|||3.5.31|<|0
CVE-2020-28463|reportlab|reportlab|-||||0
CVE-2023-33733|reportlab|reportlab|||3.6.12|<=|0

Set CVE_PRODUCT accordingly.

---
 meta-python/recipes-devtools/python/python3-reportlab_4.4.5.bb | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-reportlab_4.4.5.bb +1 -0
index 4c411d5716..3ea47e355b 100644
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=cf24392f451ff6710fca1e96cefa0424"
 
 SRC_URI[sha256sum] = "0457d642aa76df7b36b0235349904c58d8f9c606a872456ed04436aafadc1510"
 
+CVE_PRODUCT = "reportlab"
 inherit pypi python_setuptools_build_meta
 
 BBCLASSEXTEND = "native nativesdk"
#7 lore raw

PATCH 8/10 python3-validators: set CVE_PRODUCT

In reply to Gyorgy Sarvari

The CVEs related to this project are tracked using the validators_project:validators CPE, which doesn't match the default python:validators CPE.

See CVE db query:
sqlite> select * from products where product like 'validators';

CVE-2019-19588|validators_project|validators|0.12.2|>=|0.12.5|<=
CVE-2023-45813|validators_project|validators|0.11.0|=||
CVE-2023-45813|validators_project|validators|0.20.0|=||

Set the CVE_PRODUCT so it matches relevant entries.

---
 .../recipes-devtools/python/python3-validators_0.35.0.bb        | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-validators_0.35.0.bb +2 -0
index d598cdc97c..79950f945c 100644
@@ -5,6 +5,8 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=78327e3919fcd4e9a4a07299899c634c"
 SRC_URI[sha256sum] = "992d6c48a4e77c81f1b4daba10d16c3a9bb0dbb79b3a19ea847ff0928e70497a"
 
+CVE_PRODUCT = "validators"
+
 inherit pypi python_setuptools_build_meta ptest-python-pytest
 
 RDEPENDS:${PN}-ptest += " \
#8 lore raw

PATCH 9/10 python3-webargs: set CVE_PRODUCT

In reply to Gyorgy Sarvari

The relevant CVEs for this recipe are tracked using webargs_project:webargs CPE, which makes the default python:webargs CPE to miss CVEs.

See CVE db query:
sqlite> select * from products where product like '%webargs%';

CVE-2019-9710|webargs_project|webargs|||5.1.3|<
CVE-2020-7965|webargs_project|webargs|5.0.0|>=|5.5.2|<=

Set the CVE_PRODUCT accordingly.

---
 meta-python/recipes-devtools/python/python3-webargs_8.7.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-webargs_8.7.1.bb +1 -0
index 307d2436c2..606796e287 100644
@@ -5,6 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=27586b20700d7544c06933afe56f7df4"
 
 inherit pypi python_flit_core
 
+CVE_PRODUCT = "webargs"
 SRC_URI[sha256sum] = "799bf9039c76c23fd8dc1951107a75a9e561203c15d6ae8f89c1e46e234636c1"
 
 RDEPENDS:${PN} += "\
#9 lore raw

PATCH 10/10 python3-svglib: set CVE_PRODUCT

In reply to Gyorgy Sarvari

There is only one relevant CVE in the database, but it is tracked using svglib_project:svglib CPE, not the expected python:svglib CPE, making the cve-checker miss it.

See CVE db query:
sqlite> select * from products where product like '%svglib%'; CVE-2020-10799|svglib_project|svglib|||0.9.3|<=

Set the CVE_PRODUCT accordingly.

---
 meta-python/recipes-devtools/python/python3-svglib_1.6.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-svglib_1.6.0.bb +2 -0
index 67c072c9a1..fc16e3099d 100644
@@ -6,6 +6,8 @@ DESCRIPTION = "Svglib is a Python library for reading SVG files and \
 LICENSE = "LGPL-3.0-or-later"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b52f2d57d10c4f7ee67a7eb9615d5d24"
 
+CVE_PRODUCT = "svglib"
+
 SRC_URI[sha256sum] = "4c38a274a744ef0d1677f55d5d62fc0fb798819f813e52872a796e615741733d"
 
 inherit pypi python_hatchling