Skip to content
High 8.8

@contentlayer/source-files に任意のJavaScriptを実行される脆弱性

CVE-2026-129948 First seen on SecPulse

Summary

@contentlayer/source-files の0.3.4以前には、コンテンツファイルの先頭に特定の区切り行を書くと、ビルド時にJavaScriptが実行される脆弱性があります。CI(継続的インテグレーション)のビルド用シークレットが漏えいするおそれがあり、CVSSv3は8.8です。修正版の有無は事実に含まれていないため、最新の情報を確認してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

@contentlayer/source-files の0.3.4以前には、コンテンツファイルの先頭に特定の区切り行を書くと、ビルド時にJavaScriptが実行される脆弱性があります。CI(継続的インテグレーション)のビルド用シークレットが漏えいするおそれがあり、CVSSv3は8.8です。修正版の有無は事実に含まれていないため、最新の情報を確認してください。

Affected packages

PackageAffected → Fixed
contentlayerdev@contentlayer/source-files
≤ 0.3.4→ Not listed

This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.

Original description The description as published by the source.

Contentlayer @contentlayer/source-files through 0.3.4 contains a code injection vulnerability that allows attackers who control content files to execute JavaScript by abusing gray-matter's still-enabled JavaScript engine in parseMarkdown(). Attackers can start a Markdown or MDX file with a ---js or ---javascript frontmatter delimiter to run code during build, exposing CI build secrets.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details