diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 13ff9150a04de819bb5ff1a546c646c2f82dd427..c0684fdd5b06dad22ce370d57c9406f9179b8e22 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -44,3 +44,24 @@ pages:
     expire_in: 1 week
   rules:
     - if: $CI_COMMIT_TAG
+
+endpoint_check:
+  image: node:20-bullseye
+  stage: build
+  script:
+    - |
+      if git diff --name-only $CI_COMMIT_BEFORE_SHA $CI_COMMIT_SHA | grep -q "endpoints.json"; then
+        npm install
+        node graphql/generateEndpoints.js
+        git config --global user.email "ci@duniter.org"
+        git config --global user.name "CI Bot"
+        git add -A
+        git commit -m "Auto-update generated endpoints"
+        git push https://gitlab-ci-token:${CI_PUSH_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git HEAD:$CI_COMMIT_REF_NAME
+      else
+        echo "No changes in endpoints.json"
+      fi
+  rules:
+    - changes:
+        - endpoints.json
+
diff --git a/package-lock.json b/package-lock.json
index b3efc8069d69679a21476001f4e5dd587d1a690b..a7c0680c2693757f095255962770e2c5a480b189 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10105,9 +10105,9 @@
 			}
 		},
 		"node_modules/buffer": {
-			"version": "5.7.1",
-			"resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
-			"integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
+			"version": "6.0.3",
+			"resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",
+			"integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",
 			"funding": [
 				{
 					"type": "github",
@@ -10122,9 +10122,11 @@
 					"url": "https://feross.org/support"
 				}
 			],
+			"optional": true,
+			"peer": true,
 			"dependencies": {
 				"base64-js": "^1.3.1",
-				"ieee754": "^1.1.13"
+				"ieee754": "^1.2.1"
 			}
 		},
 		"node_modules/buffer-from": {
@@ -22065,6 +22067,29 @@
 				"node": ">=8"
 			}
 		},
+		"node_modules/sync-fetch/node_modules/buffer": {
+			"version": "5.7.1",
+			"resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
+			"integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
+			"funding": [
+				{
+					"type": "github",
+					"url": "https://github.com/sponsors/feross"
+				},
+				{
+					"type": "patreon",
+					"url": "https://www.patreon.com/feross"
+				},
+				{
+					"type": "consulting",
+					"url": "https://feross.org/support"
+				}
+			],
+			"dependencies": {
+				"base64-js": "^1.3.1",
+				"ieee754": "^1.1.13"
+			}
+		},
 		"node_modules/sync-fetch/node_modules/node-fetch": {
 			"version": "2.7.0",
 			"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",