{"id":"CVE-2023-52081","aliases":["CVE-2023-52081","GHSA-wpmx-564x-h2mh","GO-2023-2426"],"related":[],"kind":"vulnerability","state":"published","title":"ewen-lbh/ffcss late-Unicode normalization vulnerability","summary":"ffcss is a CLI interface to apply and configure Firefox CSS themes. Prior to 0.2.0, the function `lookupPreprocess()` is meant to apply some transformations to a string by disabling characters in the regex `[-_ .]`. However, due to the use of late Unicode normalization of type NFKD, it is possible to bypass that validation and re-introduce all the characters in the regex `[-_ .]`. The `lookupPreprocess()` can be easily bypassed with equivalent Unicode characters like U+FE4D (﹍), which would result in the omitted U+005F (_), for instance. The `lookupPreprocess()` function is only ever used to search for themes loosely (case insensitively, while ignoring dashes, underscores and dots), so the actual security impact is classified as low. This vulnerability is fixed in 0.2.0. There are no known workarounds.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"ffcss is a CLI interface to apply and configure Firefox CSS themes. Prior to 0.2.0, the function `lookupPreprocess()` is meant to apply some transformations to a string by disabling characters in the regex `[-_ .]`. However, due to the use of late Unicode normalization of type NFKD, it is possible to bypass that validation and re-introduce all the characters in the regex `[-_ .]`. The `lookupPreprocess()` can be easily bypassed with equivalent Unicode characters like U+FE4D (﹍), which would result in the omitted U+005F (_), for instance. The `lookupPreprocess()` function is only ever used to search for themes loosely (case insensitively, while ignoring dashes, underscores and dots), so the actual security impact is classified as low. This vulnerability is fixed in 0.2.0. There are no known workarounds.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe function `lookupPreprocess()` is meant to apply some transformations to a string by disabling characters in the regex `[-_ .]`. However, due to the use of late Unicode normalization of type NFKD, it is possible to bypass that validation and re-introduce all the characters in the regex `[-_ .]`. \n\n```go\n// lookupPreprocess applies transformations to s so that it can be compared\n// to search for something.\n// For example, it is used by (ThemeStore).Lookup\nfunc lookupPreprocess(s string) string {\n\treturn strings.ToLower(norm.NFKD.String(regexp.MustCompile(`[-_ .]`).ReplaceAllString(s, \"\")))\n}\n``` \n\nTake the following equivalent Unicode character U+2024 (․). Initially, the `lookupPreprocess()` function would compile the regex and replace the regular dot (.). However, the U+2024 (․) would bypass the `ReplaceAllString()`. When the normalization operation is applied to U+2024 (․), the resulting character will be U+002E (.). Thus, the dot was reintroduced back.\n\n### Impact\n\nThe `lookupPreprocess()` can be easily bypassed with equivalent Unicode characters like U+FE4D (﹍), which would result in the omitted U+005F (_), for instance. It should be noted here that the variable `s` is user-controlled data coming from [/cmd/ffcss/commands.go#L22-L28](https://github.com/ewen-lbh/ffcss/blob/master/cmd/ffcss/commands.go#L22-L28) the command args. The `lookupPreprocess()` function is only ever used to search for themes loosely (case insensitively, while ignoring dashes, underscores and dots), so the actual security impact is classified as low.\n\n### Remediation\n\nA simple fix would be to initially perform the Unicode normalization and then the rest of validations.\n\n### References\n\n - https://sim4n6.beehiiv.com/p/unicode-characters-bypass-security-checks","format":"markdown","source":"ghsa"},{"lang":"en","text":"ewen-lbh/ffcss Late-Unicode normalization vulnerability in github.com/ewen-lbh/ffcss","format":"markdown","source":"go"},{"lang":"es","text":"ffcss es una interfaz CLI para aplicar y configurar temas CSS de Firefox. Antes de 0.2.0, la función `lookupPreprocess()` estaba destinada a aplicar algunas transformaciones a una cadena deshabilitando caracteres en la expresión regular `[-_ .]`. Sin embargo, debido al uso de la normalización Unicode tardía del tipo NFKD, es posible omitir esa validación y volver a introducir todos los caracteres en la expresión regular `[-_ .]`. El `lookupPreprocess()` se puede omitir fácilmente con caracteres Unicode equivalentes como U+FE4D (?), lo que daría como resultado U+005F (_) omitido, por ejemplo. La función `lookupPreprocess()` sólo se utiliza para buscar temas de forma flexible (sin distinguir entre mayúsculas y minúsculas, ignorando guiones, guiones bajos y puntos), por lo que el impacto real en la seguridad se clasifica como bajo. Esta vulnerabilidad se solucionó en 0.2.0. No se conocen workarounds.","source":"nvd"}],"published":"2023-12-28T15:34:17.132Z","modified":"2026-09-10T03:50:09.240Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-74","CWE-176"],"affected":[{"ranges":[{"version":"< 0.2.0","status":"affected"}],"vendor":"ewen-lbh","product":"ffcss","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.2.0"}],"ecosystem":"Go","package":"github.com/ewen-lbh/ffcss","purl":"pkg:golang/github.com/ewen-lbh/ffcss","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.2.0"}],"ecosystem":"Go","package":"github.com/ewen-lbh/ffcss","purl":"pkg:golang/github.com/ewen-lbh/ffcss","source":"go"},{"ranges":[{"status":"affected","fixed":"0.2.0"}],"vendor":"ewen-lbh","product":"firefox_css","cpe":"cpe:2.3:a:ewen-lbh:firefox_css:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ewen-lbh/ffcss/security/advisories/GHSA-wpmx-564x-h2mh","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/ewen-lbh/ffcss/commit/f9c491874b858a32fcae15045f169fd7d02f90dc","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52081","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/ewen-lbh/ffcss","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-52081","url":"https://www.cve.org/CVERecord?id=CVE-2023-52081","licence":"CVE Terms of Use","modified":"2024-08-02T22:48:12.133Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wpmx-564x-h2mh","url":"https://github.com/advisories/GHSA-wpmx-564x-h2mh","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:09.240Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-2426","url":"https://pkg.go.dev/vuln/GO-2023-2426","licence":"CC-BY-4.0","modified":"2026-03-03T04:54:25.823Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-52081","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52081","licence":"Public domain","modified":"2026-06-17T06:42:02.147Z"}],"updatedAt":"2026-11-25T22:58:31.708Z","epss":{"score":0.00622,"percentile":0.44178,"date":"2026-11-30T12:00:22.000Z"}}