Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

[SECURITY] Pin axios and enforce frozen lockfile in frontend builds (#1880)

Jaseem Jas8def6c1f77a6
diff --git a/docker/dockerfiles/frontend.Dockerfile b/docker/dockerfiles/frontend.Dockerfile
index f11f4be5a..0c3fdcc92 100644
--- a/docker/dockerfiles/frontend.Dockerfile
+++ b/docker/dockerfiles/frontend.Dockerfile
@@ -15,7 +15,7 @@ ARG BUILD_CONTEXT_PATH
# Copy only package files for dependency caching
COPY ${BUILD_CONTEXT_PATH}/package.json ${BUILD_CONTEXT_PATH}/bun.lock ./
-RUN bun install --ignore-scripts
+RUN bun install --frozen-lockfile --ignore-scripts
# Copy the rest of the application files
COPY ${BUILD_CONTEXT_PATH}/ /app/
@@ -36,11 +36,12 @@ CMD ["/bin/sh", "-c", "/app/generate-runtime-config.sh && bun run start"]
### FOR PRODUCTION ###
# Builder stage for production build
FROM base AS builder
+ARG BUILD_CONTEXT_PATH
ENV VITE_BACKEND_URL=""
# Copy package files and install dependencies
COPY ${BUILD_CONTEXT_PATH}/package.json ${BUILD_CONTEXT_PATH}/bun.lock ./
-RUN bun install --ignore-scripts
+RUN bun install --frozen-lockfile --ignore-scripts
# Copy the rest of the application files
COPY ${BUILD_CONTEXT_PATH}/ .
diff --git a/frontend/bun.lock b/frontend/bun.lock
index 719da929b..662c50ef8 100644
--- a/frontend/bun.lock
+++ b/frontend/bun.lock
@@ -21,7 +21,7 @@
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"antd": "^5.5.1",
- "axios": "^1.4.0",
+ "axios": "1.13.5",
"cron-validator": "^1.3.1",
"cronstrue": "^2.48.0",
"date-fns": "^4.1.0",
@@ -590,7 +590,7 @@
"available-typed-arrays": ["[email protected]", "", { "dependencies": { "possible-typed-array-names": "^1.0.0" } }, "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ=="],
- "axios": ["[email protected]", "", { "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.4", "proxy-from-env": "^1.1.0" } }, "sha512-1wVkUaAO6WyaYtCkcYCOx12ZgpGf9Zif+qXa4n+oYzK558YryKqiL6UWwd5DqiH3VRW0GYhTZQ/vlgJrCoNQlg=="],
+ "axios": ["[email protected]", "", { "dependencies": { "follow-redirects": "^1.15.11", "form-data": "^4.0.5", "proxy-from-env": "^1.1.0" } }, "sha512-cz4ur7Vb0xS4/KUN0tPWe44eqxrIu31me+fbang3ijiNscE129POzipJJA6zniq2C/Z6sJCjMimjS8Lc/GAs8Q=="],
"babel-plugin-macros": ["[email protected]", "", { "dependencies": { "@babel/runtime": "^7.12.5", "cosmiconfig": "^7.0.0", "resolve": "^1.19.0" } }, "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg=="],
diff --git a/frontend/package.json b/frontend/package.json
index 931999929..fd14ebeda 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -19,7 +19,7 @@
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"antd": "^5.5.1",
- "axios": "^1.4.0",
+ "axios": "1.13.5",
"cron-validator": "^1.3.1",
"cronstrue": "^2.48.0",
"date-fns": "^4.1.0",