diff --git a/advisories/github-reviewed/2025/01/GHSA-cg87-wmx4-v546/GHSA-cg87-wmx4-v546.json b/advisories/github-reviewed/2025/01/GHSA-cg87-wmx4-v546/GHSA-cg87-wmx4-v546.json new file mode 100644 index 00000000000..8c8998f2fc3 --- /dev/null +++ b/advisories/github-reviewed/2025/01/GHSA-cg87-wmx4-v546/GHSA-cg87-wmx4-v546.json @@ -0,0 +1,64 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-cg87-wmx4-v546", + "modified": "2025-01-17T21:22:57Z", + "published": "2025-01-17T21:22:56Z", + "aliases": [ + "CVE-2025-23207" + ], + "summary": "KaTeX \\htmlData does not validate attribute names", + "details": "### Impact\nKaTeX users who render untrusted mathematical expressions with `renderToString` could encounter malicious input using `\\htmlData` that runs arbitrary JavaScript, or generate invalid HTML.\n\n### Patches\nUpgrade to KaTeX v0.16.21 to remove this vulnerability.\n\n### Workarounds\n- Avoid use of or turn off the `trust` option, or set it to forbid `\\htmlData` commands.\n- Forbid inputs containing the substring `\"\\\\htmlData\"`.\n- Sanitize HTML output from KaTeX.\n\n### Details\n`\\htmlData` did not validate its attribute name argument, allowing it to generate invalid or malicious HTML that runs scripts.\n\n### For more information\nIf you have any questions or comments about this advisory:\n\n- Open an issue or security advisory in the [KaTeX repository](https://github.com/KaTeX/KaTeX/)\n- Email us at [katex-security@mit.edu](mailto:katex-security@mit.edu)", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L" + } + ], + "affected": [ + { + "package": { + "ecosystem": "npm", + "name": "katex" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0.12.0" + }, + { + "fixed": "0.16.21" + } + ] + } + ], + "database_specific": { + "last_known_affected_version_range": "<= 0.16.20" + } + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/KaTeX/KaTeX/security/advisories/GHSA-cg87-wmx4-v546" + }, + { + "type": "WEB", + "url": "https://github.com/KaTeX/KaTeX/commit/ff289955e81aab89086eef09254cbf88573d415c" + }, + { + "type": "PACKAGE", + "url": "https://github.com/KaTeX/KaTeX" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-116" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2025-01-17T21:22:56Z", + "nvd_published_at": null + } +} \ No newline at end of file diff --git a/advisories/github-reviewed/2025/01/GHSA-v4mq-x674-ff73/GHSA-v4mq-x674-ff73.json b/advisories/github-reviewed/2025/01/GHSA-v4mq-x674-ff73/GHSA-v4mq-x674-ff73.json new file mode 100644 index 00000000000..cb55b28f7a5 --- /dev/null +++ b/advisories/github-reviewed/2025/01/GHSA-v4mq-x674-ff73/GHSA-v4mq-x674-ff73.json @@ -0,0 +1,66 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-v4mq-x674-ff73", + "modified": "2025-01-17T21:22:25Z", + "published": "2025-01-17T21:22:25Z", + "aliases": [ + "CVE-2025-23206" + ], + "summary": "AWS Cloud Development Kit (AWS CDK) IAM OIDC custom resource allows connection to unauthorized OIDC provider", + "details": "### Impact\nUsers who use IAM OIDC custom resource provider package will download CA Thumbprints as part of the custom resource workflow, https://github.com/aws/aws-cdk/blob/d16482fc8a4a3e1f62751f481b770c09034df7d2/packages/%40aws-cdk/custom-resource-handlers/lib/aws-iam/oidc-handler/external.ts#L34. \n\nHowever, the current `tls.connect` method will always set `rejectUnauthorized: false` which is a potential security concern. CDK should follow the best practice and set `rejectUnauthorized: true`. However, this could be a breaking change for existing CDK applications and we should fix this with a feature flag. \n\nNote that this is marked as low severity Security advisory because the issuer url is provided by CDK users who define the CDK application. If they insist on connecting to a unauthorized OIDC provider, CDK should not disallow this. Additionally, the code block is run in a Lambda environment which mitigate the MITM attack.\n\nAs a best practice, CDK should still fix this issue under a feature flag to avoid regression.\n\n```\npackages/@aws-cdk/custom-resource-handlers/lib/aws-iam/oidc-handler/external.ts\n❯❱ problem-based-packs.insecure-transport.js-node.bypass-tls-verification.bypass-tls-verification\nChecks for setting the environment variable NODE_TLS_REJECT_UNAUTHORIZED to 0, which disables TLS\nverification. This should only be used for debugging purposes. Setting the option rejectUnauthorized\nto false bypasses verification against the list of trusted CAs, which also leads to insecure\ntransport.\n```\n\n### Patches\nThe patch is in progress. To mitigate, upgrade to CDK v2.177.0 (Expected release date 2025-02-22). \nOnce upgraded, please make sure the feature flag '@aws-cdk/aws-iam:oidcRejectUnauthorizedConnections' is set to true in `cdk.context.json` or `cdk.json`. More details on feature flag setting is [here](https://docs.aws.amazon.com/cdk/v2/guide/featureflags.html).\n\n### Workarounds\nN/A\n\n### References\nhttps://github.com/aws/aws-cdk/issues/32920\n", + "severity": [], + "affected": [ + { + "package": { + "ecosystem": "npm", + "name": "aws-cdk-lib" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "last_affected": "2.176.0" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/aws/aws-cdk/security/advisories/GHSA-v4mq-x674-ff73" + }, + { + "type": "WEB", + "url": "https://github.com/aws/aws-cdk/issues/32920" + }, + { + "type": "WEB", + "url": "https://github.com/aws/aws-cdk/commit/3e4f3773bfa48b75bf0adc7d53d46bbec7714a9e#diff-38a03353f201fd2e520df67fb43f9f000257bffd6e9acaa5569cce7005a77560" + }, + { + "type": "WEB", + "url": "https://docs.aws.amazon.com/cdk/v2/guide/featureflags.html" + }, + { + "type": "PACKAGE", + "url": "https://github.com/aws/aws-cdk" + }, + { + "type": "WEB", + "url": "https://github.com/aws/aws-cdk/blob/d16482fc8a4a3e1f62751f481b770c09034df7d2/packages/%40aws-cdk/custom-resource-handlers/lib/aws-iam/oidc-handler/external.ts#L34" + } + ], + "database_specific": { + "cwe_ids": [], + "severity": "LOW", + "github_reviewed": true, + "github_reviewed_at": "2025-01-17T21:22:25Z", + "nvd_published_at": null + } +} \ No newline at end of file