Skip to content

Commit a200865

Browse files
author
Support Bot
committed
fix(security): bump postcss pin from 8.5.12 to 8.5.23
Bumps the repo-wide postcss override/resolution from 8.5.12 to 8.5.23 to remediate GHSA-r28c-9q8g-f849 (CVSS 7.5, High). The advisory describes a path-traversal bug in PostCSS's sourceMappingURL auto-loading (lib/previous-map.js): a crafted sourceMappingURL containing ../ sequences could read arbitrary .map files from the filesystem. The fix in 8.5.18+ restricts source-map loading to the opts.from directory; 8.5.18 through 8.5.23 contain no further breaking changes. postcss is not a direct dependency of BitGoJS; it is pulled in transitively by css-loader, sanitize-html, @vue/compiler-sfc, and the web-demo app. Because the existing resolutions/overrides pin was already collapsing all four ranges (^8.2.14, ^8.2.15, ^8.3.11, ^8.5.6) to a single version, switching to 8.5.23 satisfies every range unchanged. None of BitGoJS's usages load source maps from outside opts.from, so the new restriction has no functional impact. This unblocks the "Publish @bitgo-beta" GitHub Actions workflow, which was failing at the osv-scanner "Enforce Vulnerability Severity Threshold" gate due to this advisory. Ticket: INF-2186 Session-Id: 87e939d9-34b0-414f-9c42-0dbca6398ab4 Task-Id: da7773f3-f9b6-44b0-b5df-ce432cca3a78
1 parent 863ad94 commit a200865

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
"sjcl": "npm:@bitgo/sjcl@1.0.1",
130130
"picomatch": ">=2.3.2",
131131
"fast-uri": "3.1.3",
132-
"postcss": "8.5.12",
132+
"postcss": "8.5.23",
133133
"@babel/plugin-transform-modules-systemjs": "7.29.4",
134134
"protobufjs": "7.6.4",
135135
"@protobufjs/fetch": "1.1.0",
@@ -201,7 +201,7 @@
201201
"sjcl": "npm:@bitgo/sjcl@1.0.1",
202202
"picomatch": ">=2.3.2",
203203
"fast-uri": "3.1.3",
204-
"postcss": "8.5.12",
204+
"postcss": "8.5.23",
205205
"@babel/plugin-transform-modules-systemjs": "7.29.4",
206206
"protobufjs": "7.6.4",
207207
"@protobufjs/fetch": "1.1.0",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17313,10 +17313,10 @@ postcss-value-parser@^4.0.2, postcss-value-parser@^4.1.0, postcss-value-parser@^
1731317313
resolved "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz"
1731417314
integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
1731517315

17316-
postcss@8.5.12, postcss@^8.2.14, postcss@^8.2.15, postcss@^8.3.11, postcss@^8.5.6:
17317-
version "8.5.12"
17318-
resolved "https://registry.npmjs.org/postcss/-/postcss-8.5.12.tgz#cd0c0f667f7cb0521e2313234ea6e707a9ec1ddb"
17319-
integrity sha512-W62t/Se6rA0Az3DfCL0AqJwXuKwBeYg6nOaIgzP+xZ7N5BFCI7DYi1qs6ygUYT6rvfi6t9k65UMLJC+PHZpDAA==
17316+
postcss@8.5.23, postcss@^8.2.14, postcss@^8.2.15, postcss@^8.3.11, postcss@^8.5.6:
17317+
version "8.5.23"
17318+
resolved "https://registry.npmjs.org/postcss/-/postcss-8.5.23.tgz"
17319+
integrity sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg==
1732017320
dependencies:
1732117321
nanoid "^3.3.11"
1732217322
picocolors "^1.1.1"

0 commit comments

Comments
 (0)