Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
nginx
GitHub Repository: nginx/nginx.org
Path: blob/main/xml/en/docs/njs/security.xml
1 views
1
<?xml version="1.0"?>
2
3
<!--
4
Copyright (C) Nginx, Inc.
5
-->
6
7
<!DOCTYPE article SYSTEM "../../../../dtd/article.dtd">
8
9
<article name="Security"
10
link="/en/docs/njs/security.html"
11
lang="en"
12
rev="4"
13
toc="no">
14
15
<section>
16
17
<para>
18
All nginx security issues should be reported to
19
<link url="mailto:[email protected]">[email protected]</link>
20
or via one of the methods listed
21
<link url="https://github.com/nginx/njs/blob/master/SECURITY.md">here</link>.
22
</para>
23
24
<para>
25
Patches are signed using one of the
26
<link doc="../../pgp_keys.xml">PGP public keys</link>.
27
</para>
28
29
</section>
30
31
32
<section id="considerations" name="Special considerations">
33
34
<para>
35
njs does not evaluate dynamic code,
36
especially code received from the network, in any way.
37
The only way to evaluate that code using njs
38
is to configure the
39
<link doc="../http/ngx_http_js_module.xml" id="js_import">js_import</link>
40
directive in nginx.
41
JavaScript code is loaded once during nginx start.
42
</para>
43
44
<para>
45
In the nginx/njs threat model, JavaScript code is considered a trusted source
46
in the same way as <literal>nginx.conf</literal> and sites certificates.
47
What this means in practice:
48
49
<list type="bullet">
50
51
<listitem>
52
memory disclosure and other security issues
53
triggered by JavaScript code modification
54
are not considered security vulnerabilities, but rather ordinary bugs
55
</listitem>
56
57
<listitem>
58
measures should be taken for protecting JavaScript code used by njs
59
</listitem>
60
61
<listitem>
62
if no <link doc="../http/ngx_http_js_module.xml" id="js_import">js_import</link>
63
directives are present in <literal>nginx.conf</literal>,
64
nginx is safe from JavaScript-related vulnerabilities
65
</listitem>
66
67
</list>
68
</para>
69
70
</section>
71
72
73
<section id="advisories" name="Advisories">
74
75
<security>
76
77
<item name="Heap buffer overflow in js_fetch_proxy"
78
severity="medium"
79
advisory="https://my.f5.com/manage/s/article/K000161307"
80
cve="2026-8711"
81
good="0.9.9+"
82
vulnerable="0.9.4-0.9.8">
83
</item>
84
85
</security>
86
87
</section>
88
89
90
</article>
91
92