Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,9 @@ redirects here.

## Security

`npm audit` reports one **moderate** advisory in `js-yaml`, pulled in transitively
through Docusaurus' own dependency (`gray-matter`). It is **build-time only**
(front-matter parsing of trusted, first-party content) and is **not present in the
deployed static site**. It cannot be overridden without breaking `gray-matter`, so it
is accepted until Docusaurus bumps the dependency upstream. The high-severity
`serialize-javascript` and `uuid` advisories are pinned to patched versions via npm
`overrides` in `package.json`. CI fails only on **high/critical** advisories
(`npm audit --audit-level=high`).
Transitive advisories from the Docusaurus toolchain are pinned to patched versions
via npm `overrides` in `package.json` (including `serialize-javascript`, `uuid`,
`brace-expansion`, `minimatch`, `fast-uri`, `js-yaml`, `postcss`, `shell-quote`,
`svgo`, `webpack-dev-server`, `body-parser`, and `dompurify`). Most of these packages are
build-time or local-dev only and are **not present in the deployed static site**.
CI fails on **high/critical** advisories (`npm audit --audit-level=high`).
108 changes: 55 additions & 53 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,19 @@
},
"overrides": {
"serialize-javascript": "^7.0.6",
"uuid": "^11.1.1"
"uuid": "^11.1.1",
"body-parser": "^1.20.6",
"brace-expansion": "^5.0.8",
"dompurify": "^3.4.12",
"fast-uri": "^3.1.4",
"js-yaml": "^4.3.0",
"gray-matter": {
"js-yaml": "^3.15.0"
},
"minimatch": "^10.2.6",
"postcss": "^8.5.18",
"shell-quote": "^1.9.0",
"svgo": "^3.3.4",
"webpack-dev-server": "^5.2.6"
}
}