diff --git a/advisories/github-reviewed/2024/12/GHSA-9r9m-ffp6-9x4v/GHSA-9r9m-ffp6-9x4v.json b/advisories/github-reviewed/2024/12/GHSA-9r9m-ffp6-9x4v/GHSA-9r9m-ffp6-9x4v.json new file mode 100644 index 00000000000..0429a899158 --- /dev/null +++ b/advisories/github-reviewed/2024/12/GHSA-9r9m-ffp6-9x4v/GHSA-9r9m-ffp6-9x4v.json @@ -0,0 +1,221 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-9r9m-ffp6-9x4v", + "modified": "2024-12-02T17:26:21Z", + "published": "2024-12-02T17:26:20Z", + "aliases": [ + "CVE-2024-52809" + ], + "summary": "vue-i18n has cross-site scripting vulnerability with prototype pollution", + "details": "### Vulnerability type\nXSS\n\n### Description\nvue-i18n can be passed locale messages to `createI18n` or `useI18n`.\nwe can then translate them using `t` and `$t`.\nvue-i18n has its own syntax for local messages, and uses a message compiler to generate AST.\nIn order to maximize the performance of the translation function, vue-i18n uses bundler plugins such as `@intlify/unplugin-vue-i18n` and bulder to convert the AST in advance when building the application.\nBy using that AST as the locale message, it is no longer necessary to compile, and it is possible to translate using the AST.\n\nThe AST generated by the message compiler has special properties for each node in the AST tree to maximize performance. In the PoC example below, it is a `static` property, but that is just one of the optimizations.\nAbout details of special properties, see https://github.com/intlify/vue-i18n/blob/master/packages/message-compiler/src/nodes.ts\n\nIn general, the locale messages of vue-i18n are optimized during production builds using `@intlify/unplugin-vue-i18n`,\nso there is always a property that is attached during optimization like this time.\nBut if you are using a locale message AST in development mode or your own, there is a possibility of XSS if a third party injects.\n\n### Reproduce (PoC)\n```html\n\n\n \n \n vue-i18n XSS\n \n \n \n \n \n \n
\n

{{ t('hello') }}

\n
\n \n \n\n```\n\n### Workarounds\nBefore v10.0.0, we can work around this vulnerability by using the regular compilation (`jit: false` of `@intlify/unplugin-vue-i18n` plugin configuration) way instead of jit compilation.\n- jit compilation: https://vue-i18n.intlify.dev/guide/advanced/optimization.html#jit-compilation\n- bundler plugin option: https://github.com/intlify/bundle-tools/tree/main/packages/unplugin-vue-i18n#jitcompilation\n\n### References\n- [Simillar case: Vue 2 XSS vulnerability with prototype pollution](https://www.herodevs.com/vulnerability-directory/cve-2024-6783)\n", + "severity": [ + { + "type": "CVSS_V4", + "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X" + } + ], + "affected": [ + { + "package": { + "ecosystem": "npm", + "name": "@intlify/core-base" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "9.3.0" + }, + { + "fixed": "9.14.2" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "vue-i18n" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "9.3.0" + }, + { + "fixed": "9.14.2" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "@intlify/core" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "9.3.0" + }, + { + "fixed": "9.14.2" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "@intlify/vue-i18n-core" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "9.3.0" + }, + { + "fixed": "9.14.2" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "petite-vue-i18n" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "10.0.0" + }, + { + "fixed": "10.0.5" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "@intlify/core-base" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "10.0.0" + }, + { + "fixed": "10.0.5" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "vue-i18n" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "10.0.0" + }, + { + "fixed": "10.0.5" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "@intlify/core" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "10.0.0" + }, + { + "fixed": "10.0.5" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "@intlify/vue-i18n-core" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "10.0.0" + }, + { + "fixed": "10.0.5" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/intlify/vue-i18n/security/advisories/GHSA-9r9m-ffp6-9x4v" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-52809" + }, + { + "type": "WEB", + "url": "https://github.com/intlify/vue-i18n/commit/72f0d323006fc7363b18cab62d4522dadd874411" + }, + { + "type": "WEB", + "url": "https://github.com/intlify/vue-i18n/commit/9f20909ef8c9232a1072d7818e12ed6d6451024d" + }, + { + "type": "PACKAGE", + "url": "https://github.com/intlify/vue-i18n" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-79" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2024-12-02T17:26:20Z", + "nvd_published_at": "2024-11-29T19:15:09Z" + } +} \ No newline at end of file diff --git a/advisories/github-reviewed/2024/12/GHSA-pxm4-r5ph-q2m2/GHSA-pxm4-r5ph-q2m2.json b/advisories/github-reviewed/2024/12/GHSA-pxm4-r5ph-q2m2/GHSA-pxm4-r5ph-q2m2.json new file mode 100644 index 00000000000..ba3b1e4706f --- /dev/null +++ b/advisories/github-reviewed/2024/12/GHSA-pxm4-r5ph-q2m2/GHSA-pxm4-r5ph-q2m2.json @@ -0,0 +1,144 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-pxm4-r5ph-q2m2", + "modified": "2024-12-02T17:25:43Z", + "published": "2024-12-02T17:25:43Z", + "aliases": [ + "CVE-2024-52806" + ], + "summary": "SimpleSAMLphp SAML2 has an XXE in parsing SAML messages", + "details": "# Summary\nWhen loading an (untrusted) XML document, for example the SAMLResponse, it's possible to induce an XXE.\n\n## Mitigation:\n\nRemove the `LIBXML_DTDLOAD | LIBXML_DTDATTR` options from `$options` is in: https://github.com/simplesamlphp/saml2/blob/717c0adc4877ebd58428637e5626345e59fa0109/src/SAML2/DOMDocumentFactory.php#L41\n\n## Background / details\n\nTo be published on Dec 8th", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L" + }, + { + "type": "CVSS_V4", + "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L" + } + ], + "affected": [ + { + "package": { + "ecosystem": "Packagist", + "name": "simplesamlphp/saml2" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "4.6.14" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Packagist", + "name": "simplesamlphp/xml-common" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.20.0" + } + ] + } + ], + "database_specific": { + "last_known_affected_version_range": "< 1.20" + } + }, + { + "package": { + "ecosystem": "Packagist", + "name": "simplesamlphp/xml-security" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.10.0" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Packagist", + "name": "simplesamlphp/saml2-legacy" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "4.6.14" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Packagist", + "name": "simplesamlphp/saml2" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "5.0.0-alpha.1" + }, + { + "fixed": "5.0.0-alpha.18" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/simplesamlphp/saml2/security/advisories/GHSA-pxm4-r5ph-q2m2" + }, + { + "type": "WEB", + "url": "https://github.com/simplesamlphp/saml2/commit/5fd4ce4596656fb0c1278f15b8305825412e89f7" + }, + { + "type": "PACKAGE", + "url": "https://github.com/simplesamlphp/saml2" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-611" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2024-12-02T17:25:43Z", + "nvd_published_at": null + } +} \ No newline at end of file