Skip to content

Commit 187a655

Browse files
authored
🐛 fix: upgrade next to 15.2.3 to fix CVE-2025-29927 (lobehub#7105)
1 parent 3388eb6 commit 187a655

File tree

4 files changed

+8
-20
lines changed

4 files changed

+8
-20
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
"mdast-util-to-markdown": "^2.1.2",
188188
"modern-screenshot": "^4.5.5",
189189
"nanoid": "^5.0.9",
190-
"next": "^15.2.0",
190+
"next": "^15.2.3",
191191
"next-auth": "beta",
192192
"next-mdx-remote": "^5.0.0",
193193
"nextjs-toploader": "^3.7.15",

packages/web-crawler/src/utils/html/yingchao.html

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -981,21 +981,5 @@
981981

982982
<i class="fi fi-close"></i>
983983
</div>
984-
985-
<script src="//www.qiumiwu.com/static/pc/default/js/manifest.js?id=0d55e218a6cea212029bf84120f5827d"></script>
986-
<script src="//www.qiumiwu.com/static/pc/default/js/vendor.js?id=083d3c8483d62f6847a5d391d4e24f11"></script>
987-
<script src="//www.qiumiwu.com/static/pc/default/js/app.js?id=f1a291509f0d175a894051a7ab22c745"></script>
988-
989-
<div style="display: none;">
990-
<script>
991-
var _hmt = _hmt || [];
992-
(function () {
993-
var hm = document.createElement('script');
994-
hm.src = 'https://hm.baidu.com/hm.js?62420aae5cf1333ec6c6ff58d318a990';
995-
var s = document.getElementsByTagName('script')[0];
996-
s.parentNode.insertBefore(hm, s);
997-
})();
998-
</script>
999-
</div>
1000984
</body>
1001985
</html>

packages/web-crawler/src/utils/htmlToMarkdown.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ describe('htmlToMarkdown', () => {
3030
const data = htmlToMarkdown(html, { url: item.url, filterOptions: item.filterOptions || {} });
3131

3232
expect(data).toMatchSnapshot();
33-
}, 10000);
33+
}, 20000);
3434
});
3535
});

src/app/(backend)/webapi/plugin/store/route.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ export const GET = async (req: Request) => {
1919
res = await fetch(pluginStore.getPluginIndexUrl(DEFAULT_LANG));
2020
}
2121

22-
const data = await res.json();
23-
return NextResponse.json(data);
22+
if (res.ok) {
23+
const data = await res.json();
24+
return NextResponse.json(data);
25+
}
26+
27+
return res;
2428
} catch (e) {
2529
console.error(e);
2630
return new Response(`failed to fetch agent market index`, {

0 commit comments

Comments
 (0)